aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index da273773b..1830295e2 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -2910,7 +2910,7 @@ ngx_http_core_merge_loc_conf(ngx_conf_t *cf, void *parent, void *child)
conf->resolver = prev->resolver;
if (conf->resolver == NULL) {
- conf->resolver = ngx_resolver_create(cf->pool, NULL);
+ conf->resolver = ngx_resolver_create(cf, NULL);
if (conf->resolver == NULL) {
return NGX_CONF_ERROR;
}
@@ -3728,7 +3728,7 @@ ngx_http_core_resolver(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
return NGX_CONF_ERROR;
}
- clcf->resolver = ngx_resolver_create(cf->pool, &u.addrs[0]);
+ clcf->resolver = ngx_resolver_create(cf, &u.addrs[0]);
if (clcf->resolver == NULL) {
return NGX_OK;
}