mirror of
https://github.com/nginx/nginx.git
synced 2025-06-17 17:20:42 +08:00
fix return code, this fixes segfault when two or more
simultaneous connections are resolving the same address
This commit is contained in:
parent
2c01fd32f2
commit
8ef386e1af
@ -626,7 +626,9 @@ ngx_resolve_addr(ngx_resolver_ctx_t *ctx)
|
|||||||
ctx->next = rn->waiting;
|
ctx->next = rn->waiting;
|
||||||
rn->waiting = ctx;
|
rn->waiting = ctx;
|
||||||
|
|
||||||
return NGX_AGAIN;
|
/* unlock addr mutex */
|
||||||
|
|
||||||
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngx_queue_remove(&rn->queue);
|
ngx_queue_remove(&rn->queue);
|
||||||
|
Loading…
Reference in New Issue
Block a user