mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 21:52:41 +08:00
fix segfault if UDP connect() has failed
This commit is contained in:
parent
704e1c1324
commit
4d856ca763
@ -217,8 +217,6 @@ ngx_resolve_name(ngx_resolver_ctx_t *ctx)
|
|||||||
ngx_resolver_free_locked(r, ctx->event);
|
ngx_resolver_free_locked(r, ctx->event);
|
||||||
}
|
}
|
||||||
|
|
||||||
ngx_resolver_free_locked(r, ctx);
|
|
||||||
|
|
||||||
/* unlock alloc mutex */
|
/* unlock alloc mutex */
|
||||||
|
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user