]> git.kaiwu.me - nginx.git/commit
Merge of r5083: fixed potential segfault in keepalive handler.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Mar 2013 17:19:11 +0000 (17:19 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Mar 2013 17:19:11 +0000 (17:19 +0000)
commit07c3c53e00b49aa25451a38fdb0aadb875ff8432
tree6f9b766bcbacc4f5a8b02de6ddaacf27fdd86874
parente4010d888ffb07e12da2bdfecd9284871be27e52
Merge of r5083: fixed potential segfault in keepalive handler.

Fixed potential segfault in ngx_http_keepalive_handler().

In case of error in the read event handling we close a connection
by calling ngx_http_close_connection(), that also destroys connection
pool. Thereafter, an attempt to free a buffer (added in r4892) that
was allocated from the pool could cause SIGSEGV and is meaningless
as well (the buffer already freed with the pool).
src/http/ngx_http_request.c