Mercurial > hg > nginx
diff src/http/ngx_http_upstream.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 | 6d6c5ddedfc0 |
children | 4c43e25d11ea |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Mon Oct 08 04:59:26 2007 +0000 +++ b/src/http/ngx_http_upstream.c Mon Oct 08 08:55:12 2007 +0000 @@ -3065,7 +3065,7 @@ u.url = value[1]; u.default_port = 80; - if (ngx_parse_url(cf, &u) != NGX_OK) { + if (ngx_parse_url(cf->pool, &u) != NGX_OK) { if (u.err) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%s in upstream \"%V\"", u.err, &u.url); @@ -3180,7 +3180,7 @@ if (!(flags & NGX_HTTP_UPSTREAM_CREATE)) { - if (ngx_parse_url(cf, u) != NGX_OK) { + if (ngx_parse_url(cf->pool, u) != NGX_OK) { if (u->err) { ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%s in upstream \"%V\"", u->err, &u->url);