From: Ruslan Ermilov Date: Tue, 22 Apr 2014 14:56:49 +0000 (+0400) Subject: Upstream: for ssl name, non-aligned memory allocation is enough. X-Git-Tag: release-1.7.0~3 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=e0e811d60191b5ea79b6fdf0aec3c220ec879f92;p=nginx.git Upstream: for ssl name, non-aligned memory allocation is enough. --- diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 8069f5e12..af77e50e7 100644 --- 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_request_t *r, ngx_http_upstream_t *u, * 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; }