]> git.kaiwu.me - nginx.git/commit
Fixed potential segfault in ngx_http_keepalive_handler().
authorValentin Bartenev <vbart@nginx.com>
Sat, 23 Feb 2013 13:23:48 +0000 (13:23 +0000)
committerValentin Bartenev <vbart@nginx.com>
Sat, 23 Feb 2013 13:23:48 +0000 (13:23 +0000)
commitf1d5d03eee7917430c44c9ee8dcaba4efbb79cab
tree2f9a9d2041770269211482f5c4261e631d30d941
parent890ee444cafb9dcce387bd0814c2996a60ecf10e
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