Mercurial > hg > nginx
diff src/http/ngx_http_upstream_round_robin.c @ 1559:fe11e2a3946d
use pool instead of ngx_conf_t
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 08 Oct 2007 08:55:12 +0000 |
parents | 3dc408adbb70 |
children | 6725c3f56216 |
line wrap: on
line diff
--- 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_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",