]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Mark the HTTP connection connected only after SSL handshake is finished.
authorTimo Sirainen <tss@iki.fi>
Wed, 5 Jun 2013 12:43:42 +0000 (15:43 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 5 Jun 2013 12:43:42 +0000 (15:43 +0300)
src/lib-http/http-client-connection.c

index bf0d80a58cb8e8bddcb8b95a1dacf26bea61f5af..127eb4070da9584260d1771f31a99fff4faaa1c1 100644 (file)
@@ -665,6 +665,7 @@ http_client_connection_ssl_handshaked(const char **error_r, void *context)
                *error_r = error;
                return -1;
        }
+       http_client_connection_ready(conn);
        return 0;
 }
 
@@ -703,8 +704,6 @@ http_client_connection_ssl_init(struct http_client_connection *conn,
                        conn->conn.name, ssl_iostream_get_last_error(conn->ssl_iostream));
                return -1;
        }
-
-       http_client_connection_ready(conn);
        return 0;
 }