Mercurial > dovecot > core-2.2
changeset 16295:cc0dd0d79952
lib-imap-urlauth: Fixed connection error handling to abort all pending requests.
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Wed, 17 Apr 2013 18:44:52 +0300 |
parents | 8a07a5f6fd54 |
children | bafcb428167b |
files | src/lib-imap-urlauth/imap-urlauth-connection.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }