changeset 5562:4196ea50004a stable-1.4

Request body: fixed r->count increment on allocation failure.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 11 May 2013 18:49:19 +0400
parents 35b00bcf72fe
children 3b7463b08747
files src/http/ngx_http_request_body.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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_ht
 
             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;