Welcome! Log In Create A New Profile

Advanced

[nginx] Gzip static: use an appropriate error on memory allocation failure.

Sergey Kandaurov
April 20, 2017 12:34PM
details: http://hg.nginx.org/nginx/rev/5116cfea1e9a
branches:
changeset: 6987:5116cfea1e9a
user: Sergey Kandaurov <pluknet@nginx.com>
date: Thu Apr 20 18:26:38 2017 +0300
description:
Gzip static: use an appropriate error on memory allocation failure.

diffstat:

src/http/modules/ngx_http_gzip_static_module.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0cdee26605f3 -r 5116cfea1e9a src/http/modules/ngx_http_gzip_static_module.c
--- a/src/http/modules/ngx_http_gzip_static_module.c Thu Apr 20 18:26:37 2017 +0300
+++ b/src/http/modules/ngx_http_gzip_static_module.c Thu Apr 20 18:26:38 2017 +0300
@@ -238,7 +238,7 @@ ngx_http_gzip_static_handler(ngx_http_re

h = ngx_list_push(&r->headers_out.headers);
if (h == NULL) {
- return NGX_ERROR;
+ return NGX_HTTP_INTERNAL_SERVER_ERROR;
}

h->hash = 1;
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Gzip static: use an appropriate error on memory allocation failure.

Sergey Kandaurov 737 April 20, 2017 12:34PM



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

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready