summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2014-04-22 18:56:49 +0400
committerRuslan Ermilov <ru@nginx.com>2014-04-22 18:56:49 +0400
commite0e811d60191b5ea79b6fdf0aec3c220ec879f92 (patch)
treeba730c6fd61bb7288c51d331cebab4ef4f4193a4
parent0fd4f76e68a28cac43574c232b3e3a52418bd446 (diff)
downloadnginx-e0e811d60191b5ea79b6fdf0aec3c220ec879f92.tar.gz
nginx-e0e811d60191b5ea79b6fdf0aec3c220ec879f92.tar.bz2
Upstream: for ssl name, non-aligned memory allocation is enough.
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
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;
}