mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 12:22:41 +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;
|
||||
rn->waiting = ctx;
|
||||
|
||||
return NGX_AGAIN;
|
||||
/* unlock addr mutex */
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
ngx_queue_remove(&rn->queue);
|
||||
|
Loading…
Reference in New Issue
Block a user