summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream_round_robin.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-10-08 08:55:12 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-10-08 08:55:12 +0000
commit7ed63ee75f3dda705744c081a09f7e64f4432150 (patch)
treebcc89b078c603d974c8952ad3053a318c0463b21 /src/http/ngx_http_upstream_round_robin.c
parent7973964b3f2ae267a9e9c74cd5878f3b4a79751b (diff)
downloadnginx-7ed63ee75f3dda705744c081a09f7e64f4432150.tar.gz
nginx-7ed63ee75f3dda705744c081a09f7e64f4432150.tar.bz2
use pool instead of ngx_conf_t
Diffstat (limited to 'src/http/ngx_http_upstream_round_robin.c')
-rw-r--r--src/http/ngx_http_upstream_round_robin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream_round_robin.c b/src/http/ngx_http_upstream_round_robin.c
index 5caf06091..a2b269d92 100644
--- a/src/http/ngx_http_upstream_round_robin.c
+++ b/src/http/ngx_http_upstream_round_robin.c
@@ -145,7 +145,7 @@ ngx_http_upstream_init_round_robin(ngx_conf_t *cf,
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",