]> git.kaiwu.me - nginx.git/commit
Dav: fixed segfault on PUT if body was already read (ticket #238).
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 21 Nov 2012 00:51:37 +0000 (00:51 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 21 Nov 2012 00:51:37 +0000 (00:51 +0000)
commit248bc41893a9f8b0a0b0b1b231d56def837de080
tree613a760b795d9c2058e6850b4d06f7817bf9b37e
parentda130acfbe130ce655314ec128bcc1e5f0e334c6
Dav: fixed segfault on PUT if body was already read (ticket #238).

If request body reading happens with different options it's possible
that there will be no r->request_body->temp_file available (or even
no r->request_body available if body was discarded).  Return internal
server error in this case instead of committing suicide by dereferencing
a null pointer.
src/http/modules/ngx_http_dav_module.c