Skip to content

Commit

Permalink
lib-http: server: Fixed bug in request reference counting caused by e…
Browse files Browse the repository at this point in the history
…arlier fix (390b600).

The earlier change erroneously dropped two lines that unreferenced the request object after calling the callback.
  • Loading branch information
stephanbosch authored and GitLab committed Apr 12, 2016
1 parent a8f11f9 commit a1ffc40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-http/http-server-connection.c
Expand Up @@ -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 */
Expand Down

0 comments on commit a1ffc40

Please sign in to comment.