Mercurial > dovecot > core-2.2
changeset 19833:257e12f94693
lib-http: Fix to earlier http_client_connection_unref() change 1dead6
Patch by Stephan Bosch
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 23 Feb 2016 01:48:47 +0200 |
parents | 5776b68902a8 |
children | 785dec1e0a0e |
files | src/lib-http/http-client-connection.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client-connection.c Mon Feb 22 22:23:08 2016 +0200 +++ b/src/lib-http/http-client-connection.c Tue Feb 23 01:48:47 2016 +0200 @@ -571,13 +571,15 @@ conn->in_req_callback = TRUE; http_client_connection_ref(conn); retrying = !http_client_request_callback(req, response); - if (!http_client_connection_unref(&req->conn)) { + if (!http_client_connection_unref(&conn)) { /* the callback managed to get this connection destroyed */ + req->conn = NULL; if (!retrying) http_client_request_finish(req); http_client_request_unref(&req); return FALSE; } + conn = req->conn; conn->in_req_callback = FALSE; if (retrying) {