dovecot-2.2: lib-http: client: Fixed segfault caused by earlier ...

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 12 16:00:11 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/871a5b807ad0
changeset: 17941:871a5b807ad0
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Sun Oct 12 08:58:40 2014 -0700
description:
lib-http: client: Fixed segfault caused by earlier change.

diffstat:

 src/lib-http/http-client-connection.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r c4e587d1e8ac -r 871a5b807ad0 src/lib-http/http-client-connection.c
--- 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 */


More information about the dovecot-cvs mailing list