fix return code, this fixes segfault when two or more

simultaneous connections are resolving the same address
This commit is contained in:
Igor Sysoev 2009-01-31 20:33:01 +00:00
parent 2c01fd32f2
commit 8ef386e1af

View File

@ -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);