From: Timo Sirainen Date: Thu, 27 Jun 2013 17:26:13 +0000 (+0300) Subject: lib-http: Timeouts were being handled wrong/leaked by ioloop switching. X-Git-Tag: 2.2.5~92 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=92908d748f0982f726244904c2b444d63d4d3b6f;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Timeouts were being handled wrong/leaked by ioloop switching. --- diff --git a/src/lib-http/http-client-connection.c b/src/lib-http/http-client-connection.c index a341559322..4fea538225 100644 --- a/src/lib-http/http-client-connection.c +++ b/src/lib-http/http-client-connection.c @@ -936,7 +936,7 @@ void http_client_connection_switch_ioloop(struct http_client_connection *conn) if (conn->to_requests != NULL) conn->to_requests = io_loop_move_timeout(&conn->to_requests); if (conn->to_connect != NULL) - conn->to_requests = io_loop_move_timeout(&conn->to_connect); + conn->to_connect = io_loop_move_timeout(&conn->to_connect); if (conn->to_input != NULL) conn->to_input = io_loop_move_timeout(&conn->to_input); if (conn->to_idle != NULL)