commit | 8ef386e1af89a51b60859063ad1dc80332cf5faf | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Sat Jan 31 20:33:01 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Sat Jan 31 20:33:01 2009 +0000 |
tree | c83de0dd6a813e8414bd052bd1ae1836da598438 | |
parent | 2c01fd32f24a25ef6276bda2a0dcb38bfc42263d [diff] |
fix return code, this fixes segfault when two or more simultaneous connections are resolving the same address
diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c index cbc6505..c68c7f4 100644 --- a/src/core/ngx_resolver.c +++ b/src/core/ngx_resolver.c
@@ -626,7 +626,9 @@ ctx->next = rn->waiting; rn->waiting = ctx; - return NGX_AGAIN; + /* unlock addr mutex */ + + return NGX_OK; } ngx_queue_remove(&rn->queue);