[nginx] Upstream: for ssl name, non-aligned memory allocation is...
Ruslan Ermilov
ru at nginx.com
Tue Apr 22 14:58:35 UTC 2014
details: http://hg.nginx.org/nginx/rev/16405e02e612
branches:
changeset: 5667:16405e02e612
user: Ruslan Ermilov <ru at nginx.com>
date: Tue Apr 22 18:56:49 2014 +0400
description:
Upstream: for ssl name, non-aligned memory allocation is enough.
diffstat:
src/http/ngx_http_upstream.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r a77c0839c993 -r 16405e02e612 src/http/ngx_http_upstream.c
--- 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 @@ ngx_http_upstream_ssl_name(ngx_http_requ
* 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;
}
More information about the nginx-devel
mailing list