mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 04:07:18 +00:00
fix segfault if response will have CNAME only
This commit is contained in:
parent
7f35ae6ea6
commit
28bca1b6e9
1 changed files with 2 additions and 0 deletions
|
|
@ -1204,6 +1204,8 @@ ngx_resolver_process_a(ngx_resolver_t *r, u_char *buf, size_t last,
|
|||
ngx_log_debug1(NGX_LOG_DEBUG_CORE, r->log, 0,
|
||||
"resolver cname:\"%V\"", &name);
|
||||
|
||||
ngx_queue_remove(&rn->queue);
|
||||
|
||||
rn->cnlen = (u_short) name.len;
|
||||
rn->u.cname = name.data;
|
||||
rn->valid = ngx_time() + r->valid;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue