]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-http: client: Made peer object reference-counted to prevent invalid memory access...
authorStephan Bosch <stephan@dovecot.fi>
Fri, 20 May 2016 22:16:21 +0000 (00:16 +0200)
committerStephan Bosch <stephan@dovecot.fi>
Thu, 26 May 2016 01:05:44 +0000 (03:05 +0200)
commitebe0f5e387744621b73c4db79d5891ccbe0a1321
treefcd16992e801294ce7a1005c447a03eb3a7021bc
parent3e9055cee8e331a84522dd1e65d0d0e09a4e8803
lib-http: client: Made peer object reference-counted to prevent invalid memory access in request handling routine.

Resetting the peer->handling_requests flag risked triggering a segfault, since the peer object could be deleted from within the request handler loop.
src/lib-http/http-client-peer.c
src/lib-http/http-client-private.h
src/lib-http/http-client.c