mirror of
https://github.com/nginx/nginx.git
synced 2025-06-28 02:02:50 +08:00
Request body: fixed r->count increment on allocation failure.
This commit is contained in:
parent
8e35221f9a
commit
ff724933c2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user