]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: server: Fixed bug in request reference counting caused by earlier fix ...
authorStephan Bosch <stephan@rename-it.nl>
Tue, 12 Apr 2016 09:42:38 +0000 (11:42 +0200)
committerGitLab <gitlab@git.dovecot.net>
Tue, 12 Apr 2016 13:04:22 +0000 (16:04 +0300)
The earlier change erroneously dropped two lines that unreferenced the request object after calling the callback.

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

index c80bfa3b96b6c9200c3c5e840795b72ec1434052..94713e6805b41004257c8f06327206cadd484b1d 100644 (file)
@@ -602,6 +602,8 @@ static void http_server_connection_input(struct connection *_conn)
                                conn->close_indicated = TRUE;
                        if (req->destroy_pending)
                                http_server_request_destroy(&req);
+                       else
+                               http_server_request_unref(&req);
 
                        if (conn->closed) {
                                /* connection got closed in destroy callback */