Mercurial > hg > nginx-quic
changeset 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 | a77c0839c993 |
children | 64958ea92fd2 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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; }