Mercurial > hg > nginx
changeset 5199:3494f14aa46a
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 | e530b88b088b |
children | 9d83ec073c51 |
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;