diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2013-05-11 18:49:19 +0400 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-05-11 18:49:19 +0400 |
commit | ff724933c2f7afdd8b09b27c19bdb2742a3d28d1 (patch) | |
tree | 9657d219ea048c438bd9f3ba30767a4a08f26ea4 /src | |
parent | 8e35221f9ab43a9ed7ef8a14c439f4385d51e2ff (diff) | |
download | nginx-ff724933c2f7afdd8b09b27c19bdb2742a3d28d1.tar.gz nginx-ff724933c2f7afdd8b09b27c19bdb2742a3d28d1.zip |
Request body: fixed r->count increment on allocation failure.
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_request_body.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |