comparison src/http/ngx_http_request_body.c @ 5562:4196ea50004a stable-1.4

Request body: fixed r->count increment on allocation failure.
author Maxim Dounin <mdounin@mdounin.ru>
date Sat, 11 May 2013 18:49:19 +0400
parents f458156fd46a
children ea2ba6dbe361 3b7463b08747
comparison
equal deleted inserted replaced
5561:35b00bcf72fe 5562:4196ea50004a
150 goto done; 150 goto done;
151 } 151 }
152 152
153 cl = ngx_chain_get_free_buf(r->pool, &rb->free); 153 cl = ngx_chain_get_free_buf(r->pool, &rb->free);
154 if (cl == NULL) { 154 if (cl == NULL) {
155 return NGX_HTTP_INTERNAL_SERVER_ERROR; 155 rc = NGX_HTTP_INTERNAL_SERVER_ERROR;
156 goto done;
156 } 157 }
157 158
158 b = cl->buf; 159 b = cl->buf;
159 160
160 ngx_memzero(b, sizeof(ngx_buf_t)); 161 ngx_memzero(b, sizeof(ngx_buf_t));