diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-01-19 16:13:15 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-01-19 16:13:15 +0000 |
| commit | 36588962aac55a443a7077259985420bd132ccf9 (patch) | |
| tree | 5da272f439529836e6dbaa043486d18083c3f911 /src | |
| parent | 8ff1e3251c689d714e98d8487ec917b4ed771879 (diff) | |
| download | nginx-36588962aac55a443a7077259985420bd132ccf9.tar.gz nginx-36588962aac55a443a7077259985420bd132ccf9.tar.bz2 | |
fix segfault when a request body fits in r->header_in and
the body will be written to file
Diffstat (limited to 'src')
| -rw-r--r-- | src/http/ngx_http_request_body.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index f5f827511..11f82dbd4 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -163,6 +163,8 @@ ngx_http_read_client_request_body(ngx_http_request_t *r, /* the whole request body may be placed in r->header_in */ + rb->to_write = rb->bufs; + r->read_event_handler = ngx_http_read_client_request_body_handler; return ngx_http_do_read_client_request_body(r); |
