]> git.kaiwu.me - nginx.git/commitdiff
Upstream: for ssl name, non-aligned memory allocation is enough.
authorRuslan Ermilov <ru@nginx.com>
Tue, 22 Apr 2014 14:56:49 +0000 (18:56 +0400)
committerRuslan Ermilov <ru@nginx.com>
Tue, 22 Apr 2014 14:56:49 +0000 (18:56 +0400)
src/http/ngx_http_upstream.c

index 8069f5e1238eed60113ab0f0117a30e3b9dd49e7..af77e50e7a02d350c64d7e3673bdf73cee354d0c 100644 (file)
@@ -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;
     }