[dovecot/core] 1f1ba7: lib-http: client: Fixed crash happening when conne...
GitHub
noreply at github.com
Thu Feb 25 22:02:07 UTC 2016
Branch: refs/heads/master
Home: https://github.com/dovecot/core
Commit: 1f1ba791ba565d4a31b031fee95617490fe96b11
https://github.com/dovecot/core/commit/1f1ba791ba565d4a31b031fee95617490fe96b11
Author: Stephan Bosch <stephan at rename-it.nl>
Date: 2016-02-26 (Fri, 26 Feb 2016)
Changed paths:
M src/lib-http/http-client-peer.c
M src/lib-http/http-client-private.h
Log Message:
-----------
lib-http: client: Fixed crash happening when connection hits an error while handling a new request.
At this point the connection dies within the peer request handler loop.
Before, the dying connection could free the peer when it ended up being
obsolete. But because it was still in the loop, a segfault occurred as the
loop continued. Fixed by deferring the the deallocation of the peer from
the connection_lost() function to the request handler loop itself if it is
active.
More information about the dovecot-cvs
mailing list