Request body: fixed r->count increment on allocation failure.

This commit is contained in:
Maxim Dounin 2013-05-11 18:49:19 +04:00
parent 2953968e4f
commit eb927f8f2f
1 changed files with 2 additions and 1 deletions

View File

@ -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;