]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-urlauth: Fixed connection error handling to abort all pending requests.
authorStephan Bosch <stephan@rename-it.nl>
Wed, 17 Apr 2013 15:44:52 +0000 (18:44 +0300)
committerStephan Bosch <stephan@rename-it.nl>
Wed, 17 Apr 2013 15:44:52 +0000 (18:44 +0300)
src/lib-imap-urlauth/imap-urlauth-connection.c

index 3a4835d502ca2b557012f736f7d18dc0d5346ed9..2f8df0b61992d17192f5ae0ff73f37f97d626bae 100644 (file)
@@ -873,6 +873,7 @@ imap_urlauth_connection_do_connect(struct imap_urlauth_connection *conn)
        if (conn->user->auth_token == NULL) {
                i_error("imap-urlauth: cannot authenticate because no auth token "
                        "is available for this session (standalone IMAP?).");
+               imap_urlauth_connection_abort(conn, NULL);
                return -1;
        }
 
@@ -884,6 +885,7 @@ imap_urlauth_connection_do_connect(struct imap_urlauth_connection *conn)
        if (fd == -1) {
                i_error("imap-urlauth: net_connect_unix(%s) failed: %m",
                        conn->path);
+               imap_urlauth_connection_abort(conn, NULL);
                return -1;
        }