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 | ae341c36ab550d245e0741cf94e14890e4b53673 (patch) | |
| tree | 7887cb303af70993fe04a6282a6fd4354d347761 | |
| parent | 79f0766f356d74f0331b9ff283b32408cf59adbb (diff) | |
| download | nginx-ae341c36ab550d245e0741cf94e14890e4b53673.tar.gz nginx-ae341c36ab550d245e0741cf94e14890e4b53673.tar.bz2 | |
Request body: fixed r->count increment on allocation failure.
| -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; |
