dovecot-2.2: lib-imap-urlauth: Fixed connection error handling t...

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 17 18:45:17 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/cc0dd0d79952
changeset: 16295:cc0dd0d79952
user:      Stephan Bosch <stephan at rename-it.nl>
date:      Wed Apr 17 18:44:52 2013 +0300
description:
lib-imap-urlauth: Fixed connection error handling to abort all pending requests.

diffstat:

 src/lib-imap-urlauth/imap-urlauth-connection.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 8a07a5f6fd54 -r cc0dd0d79952 src/lib-imap-urlauth/imap-urlauth-connection.c
--- a/src/lib-imap-urlauth/imap-urlauth-connection.c	Wed Apr 17 16:19:42 2013 +0300
+++ b/src/lib-imap-urlauth/imap-urlauth-connection.c	Wed Apr 17 18:44:52 2013 +0300
@@ -873,6 +873,7 @@
 	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 @@
 	if (fd == -1) {
 		i_error("imap-urlauth: net_connect_unix(%s) failed: %m",
 			conn->path);
+		imap_urlauth_connection_abort(conn, NULL);
 		return -1;
 	}
 


More information about the dovecot-cvs mailing list