Welcome! Log In Create A New Profile

Advanced

[nginx] Proxy: use an appropriate error on memory allocation fai...

Ruslan Ermilov
March 05, 2015 01:18AM
details: http://hg.nginx.org/nginx/rev/cf2f8d91cf09
branches:
changeset: 6003:cf2f8d91cf09
user: Ruslan Ermilov <ru@nginx.com>
date: Wed Mar 04 08:12:53 2015 +0300
description:
Proxy: use an appropriate error on memory allocation failure.

diffstat:

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

diffs (12 lines):

diff -r f8ee988cfe6d -r cf2f8d91cf09 src/http/modules/ngx_http_proxy_module.c
--- a/src/http/modules/ngx_http_proxy_module.c Wed Mar 04 08:10:40 2015 +0300
+++ b/src/http/modules/ngx_http_proxy_module.c Wed Mar 04 08:12:53 2015 +0300
@@ -812,7 +812,7 @@ ngx_http_proxy_handler(ngx_http_request_

ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_proxy_ctx_t));
if (ctx == NULL) {
- return NGX_ERROR;
+ return NGX_HTTP_INTERNAL_SERVER_ERROR;
}

ngx_http_set_ctx(r, ctx, ngx_http_proxy_module);

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

[nginx] Proxy: use an appropriate error on memory allocation fai...

Ruslan Ermilov 397 March 05, 2015 01:18AM



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

Online Users

Guests: 247
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