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 index 8069f5e..af77e50 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c
@@ -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; }