]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-client: Don't start another DNS lookup if there's already one ongoing.
authorTimo Sirainen <tss@iki.fi>
Thu, 6 Jun 2013 09:20:54 +0000 (12:20 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 6 Jun 2013 09:20:54 +0000 (12:20 +0300)
src/lib-imap-client/imapc-connection.c

index 886e7b9d815cf365ee7c1edcde68de38cf2d8a10..b5e769bc0ce93769291a56660260c81f81adf28f 100644 (file)
@@ -1374,7 +1374,7 @@ void imapc_connection_connect(struct imapc_connection *conn,
        unsigned int ips_count;
        int ret;
 
-       if (conn->fd != -1) {
+       if (conn->fd != -1 || conn->dns_lookup != NULL) {
                i_assert(login_callback == NULL);
                return;
        }