commit | c17b163f54234d2e70464271afb8f9c6c02557cb | [log] [tgz] |
---|---|---|
author | Ruslan Ermilov <ru@nginx.com> | Wed Mar 04 08:12:53 2015 +0300 |
committer | Ruslan Ermilov <ru@nginx.com> | Wed Mar 04 08:12:53 2015 +0300 |
tree | 35dfe3c46eaea4cbc6d22aea2c61d466811c75d0 | |
parent | bc7cce3034cfa35580e3e2ed1f2b2ffbe607bf91 [diff] |
Proxy: use an appropriate error on memory allocation failure.
diff --git a/src/http/modules/ngx_http_proxy_module.c b/src/http/modules/ngx_http_proxy_module.c index d7675d4..2409c7e 100644 --- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c
@@ -812,7 +812,7 @@ 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);