Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 5667:16405e02e612
Upstream: for ssl name, non-aligned memory allocation is enough.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 22 Apr 2014 18:56:49 +0400 |
parents | 060c2e692b96 |
children | 3a48775f1535 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1511,7 +1511,7 @@ ngx_http_upstream_ssl_name(ngx_http_requ * hence we explicitly null-terminate name here */ - p = ngx_palloc(r->pool, name.len + 1); + p = ngx_pnalloc(r->pool, name.len + 1); if (p == NULL) { return NGX_ERROR; }