Welcome! Log In Create A New Profile

Advanced

[nginx] Upstream: for ssl name, non-aligned memory allocation is...

Ruslan Ermilov
April 22, 2014 11:00AM
details: http://hg.nginx.org/nginx/rev/16405e02e612
branches:
changeset: 5667:16405e02e612
user: Ruslan Ermilov <ru@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;
}

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Upstream: for ssl name, non-aligned memory allocation is...

Ruslan Ermilov 701 April 22, 2014 11:00AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready