aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-01-31 20:33:01 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-01-31 20:33:01 +0000
commit8ef386e1af89a51b60859063ad1dc80332cf5faf (patch)
treec83de0dd6a813e8414bd052bd1ae1836da598438 /src
parent2c01fd32f24a25ef6276bda2a0dcb38bfc42263d (diff)
downloadnginx-8ef386e1af89a51b60859063ad1dc80332cf5faf.tar.gz
nginx-8ef386e1af89a51b60859063ad1dc80332cf5faf.zip
fix return code, this fixes segfault when two or more
simultaneous connections are resolving the same address
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_resolver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c
index cbc650531..c68c7f4e4 100644
--- a/src/core/ngx_resolver.c
+++ b/src/core/ngx_resolver.c
@@ -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);