diff --git a/src/core/ngx_resolver.c b/src/core/ngx_resolver.c index 36bd46df6..c76c17852 100644 --- a/src/core/ngx_resolver.c +++ b/src/core/ngx_resolver.c @@ -3684,10 +3684,7 @@ ngx_resolver_create_name_query(ngx_resolver_t *r, ngx_resolver_node_t *rn, } rn->qlen = (u_short) len; - - if (r->ipv4) { - rn->query = p; - } + rn->query = p; #if (NGX_HAVE_INET6) if (r->ipv6) {