Mercurial > dovecot > core-2.2
changeset 17941:871a5b807ad0
lib-http: client: Fixed segfault caused by earlier change.
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Sun, 12 Oct 2014 08:58:40 -0700 |
parents | c4e587d1e8ac |
children | b254b7dc717f |
files | src/lib-http/http-client-connection.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client-connection.c Sat Oct 11 00:02:00 2014 +0300 +++ b/src/lib-http/http-client-connection.c Sun Oct 12 08:58:40 2014 -0700 @@ -503,7 +503,6 @@ http_client_connection_ref(conn); retrying = !http_client_request_callback(req, response); http_client_connection_unref(&conn); - conn->in_req_callback = FALSE; if (conn == NULL) { /* the callback managed to get this connection destroyed */ if (!retrying) @@ -511,6 +510,7 @@ http_client_request_unref(&req); return FALSE; } + conn->in_req_callback = FALSE; if (retrying) { /* retrying, don't destroy the request */