]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: client: Fixed reference counting for requests that are aborted due to an...
authorStephan Bosch <stephan@dovecot.fi>
Sun, 22 May 2016 08:42:01 +0000 (10:42 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 20 Jun 2016 00:24:34 +0000 (03:24 +0300)
An additional http_client_request_unref() is (now) unneccessary.

src/lib-http/http-client-connection.c

index dfc5686b7e1cd72867ff44c7b9290764a275ed1c..1e9be7f681c07a00f5655086497d059f65293209 100644 (file)
@@ -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;
                        }