# HG changeset patch # User Ruslan Ermilov # Date 1398178609 -14400 # Node ID 16405e02e6123404e308d6c9bada3ec1f72e3784 # Parent a77c0839c993bb06e75da83603cc91b83a68ba8e 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 --- 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; }