dovecot-2.2: lib-imap-client: Don't start another DNS lookup if ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jun 6 12:21:23 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/d2756f3edb9c
changeset: 16470:d2756f3edb9c
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 06 12:20:54 2013 +0300
description:
lib-imap-client: Don't start another DNS lookup if there's already one ongoing.

diffstat:

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

diffs (12 lines):

diff -r 5ba3d95aba9d -r d2756f3edb9c src/lib-imap-client/imapc-connection.c
--- a/src/lib-imap-client/imapc-connection.c	Thu Jun 06 11:40:27 2013 +0300
+++ b/src/lib-imap-client/imapc-connection.c	Thu Jun 06 12:20:54 2013 +0300
@@ -1374,7 +1374,7 @@
 	unsigned int ips_count;
 	int ret;
 
-	if (conn->fd != -1) {
+	if (conn->fd != -1 || conn->dns_lookup != NULL) {
 		i_assert(login_callback == NULL);
 		return;
 	}


More information about the dovecot-cvs mailing list