diff src/http/ngx_http_request_body.c @ 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 f458156fd46a
children ea2ba6dbe361 3b7463b08747
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;