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	Tue Apr 22 14:02:45 2014 +0400
+++ b/src/http/ngx_http_upstream.c	Tue Apr 22 18:56:49 2014 +0400
@@ -1511,7 +1511,7 @@
      * 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;
     }