diff src/http/ngx_http_upstream_round_robin.c @ 1710:20a0f2880d45 stable-0.5

r1560 merge: use pool instead of ngx_conf_t
author Igor Sysoev <igor@sysoev.ru>
date Wed, 12 Dec 2007 16:51:43 +0000
parents a179755ee1ea
children
line wrap: on
line diff
--- a/src/http/ngx_http_upstream_round_robin.c
+++ b/src/http/ngx_http_upstream_round_robin.c
@@ -73,7 +73,7 @@ ngx_http_upstream_init_round_robin(ngx_c
     u.host = us->host;
     u.port = (in_port_t) (us->port ? us->port : us->default_port);
 
-    if (ngx_inet_resolve_host(cf, &u) != NGX_OK) {
+    if (ngx_inet_resolve_host(cf->pool, &u) != NGX_OK) {
         if (u.err) {
             ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
                           "%s in upstream \"%V\" in %s:%ui",