From: Maxim Dounin Date: Sat, 11 May 2013 14:49:19 +0000 (+0400) Subject: Request body: fixed r->count increment on allocation failure. X-Git-Tag: release-1.4.5~9 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=ae341c36ab550d245e0741cf94e14890e4b53673;p=nginx.git Request body: fixed r->count increment on allocation failure. --- diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index 2c612311d..7ca328791 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -152,7 +152,8 @@ ngx_http_read_client_request_body(ngx_http_request_t *r, cl = ngx_chain_get_free_buf(r->pool, &rb->free); if (cl == NULL) { - return NGX_HTTP_INTERNAL_SERVER_ERROR; + rc = NGX_HTTP_INTERNAL_SERVER_ERROR; + goto done; } b = cl->buf;