mirror of
https://github.com/nginx/nginx.git
synced 2026-06-25 19:37:00 +00:00
fix segfault in resolver:
ngx_resolve_name_done() and ngx_resolve_addr_done() did not delete contexts from a resolver node waiting list.
This commit is contained in:
parent
21accae8e5
commit
64bfa87e73
1 changed files with 2 additions and 0 deletions
|
|
@ -464,6 +464,7 @@ ngx_resolve_name_locked(ngx_resolver_t *r, ngx_resolver_ctx_t *ctx)
|
|||
|
||||
ctx->next = rn->waiting;
|
||||
rn->waiting = ctx;
|
||||
ctx->state = NGX_AGAIN;
|
||||
|
||||
return NGX_AGAIN;
|
||||
}
|
||||
|
|
@ -625,6 +626,7 @@ ngx_resolve_addr(ngx_resolver_ctx_t *ctx)
|
|||
|
||||
ctx->next = rn->waiting;
|
||||
rn->waiting = ctx;
|
||||
ctx->state = NGX_AGAIN;
|
||||
|
||||
/* unlock addr mutex */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue