[nginx] Request body: fixed r->count increment on allocation fai...
Maxim Dounin
mdounin at mdounin.ru
Mon Feb 10 13:36:42 UTC 2014
details: http://hg.nginx.org/nginx/rev/4196ea50004a
branches: stable-1.4
changeset: 5562:4196ea50004a
user: Maxim Dounin <mdounin at mdounin.ru>
date: Sat May 11 18:49:19 2013 +0400
description:
Request body: fixed r->count increment on allocation failure.
diffstat:
src/http/ngx_http_request_body.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
--- 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;
More information about the nginx-devel
mailing list