From: Stephan Bosch Date: Sun, 22 May 2016 08:42:01 +0000 (+0200) Subject: lib-http: client: Fixed reference counting for requests that are aborted due to an... X-Git-Tag: 2.2.25.rc1~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2cbef0faed1c4d3a99ab580ed4abf7344bb9fbf1;p=thirdparty%2Fdovecot%2Fcore.git lib-http: client: Fixed reference counting for requests that are aborted due to an early server response. An additional http_client_request_unref() is (now) unneccessary. --- diff --git a/src/lib-http/http-client-connection.c b/src/lib-http/http-client-connection.c index dfc5686b7e..1e9be7f681 100644 --- a/src/lib-http/http-client-connection.c +++ b/src/lib-http/http-client-connection.c @@ -823,7 +823,6 @@ static void http_client_connection_input(struct connection *_conn) HTTP_CLIENT_REQUEST_ERROR_BAD_RESPONSE, "Server responded with success response " "before all payload was sent"); - http_client_request_unref(&req); http_client_connection_close(&conn); return; }