]> 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)
committerStephan Bosch <stephan@dovecot.fi>
Thu, 26 May 2016 01:05:44 +0000 (03:05 +0200)
An additional http_client_request_unref() is (now) unneccessary.

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

index 7c2d88cd7203c7a0bc966fd24e2f749d049bccb2..b67090b319a9fc48a0289cfe2f33c25c55b3e0d8 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;
                        }