Mercurial > hg > nginx-quic
changeset 6003:cf2f8d91cf09
Proxy: use an appropriate error on memory allocation failure.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 04 Mar 2015 08:12:53 +0300 |
parents | f8ee988cfe6d |
children | 2dac6ae6d703 |
files | src/http/modules/ngx_http_proxy_module.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/modules/ngx_http_proxy_module.c +++ b/src/http/modules/ngx_http_proxy_module.c @@ -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);