Welcome! Log In Create A New Profile

Advanced

[nginx] Request body: fixed r->count increment on allocation fai...

Maxim Dounin
February 10, 2014 08:38AM
details: http://hg.nginx.org/nginx/rev/4196ea50004a
branches: stable-1.4
changeset: 5562:4196ea50004a
user: Maxim Dounin <mdounin@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;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Request body: fixed r->count increment on allocation fai...

Maxim Dounin 478 February 10, 2014 08:38AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready