mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 13:09:01 +08:00
Upstream: for ssl name, non-aligned memory allocation is enough.
This commit is contained in:
parent
0fd4f76e68
commit
e0e811d601
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user