dovecot-1.0: Actually reconnect always if ldap_result() fails fo...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 10 09:27:18 EEST 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/24397c9610d8
changeset: 5401:24397c9610d8
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 10 09:27:13 2007 +0300
description:
Actually reconnect always if ldap_result() fails for any reason. There
really aren't any other choices.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/auth/db-ldap.c |    2 +-

diffs (12 lines):

diff -r 3801a497f97b -r 24397c9610d8 src/auth/db-ldap.c
--- a/src/auth/db-ldap.c	Mon Sep 10 09:24:11 2007 +0300
+++ b/src/auth/db-ldap.c	Mon Sep 10 09:27:13 2007 +0300
@@ -380,7 +380,7 @@ static void ldap_input(void *context)
 
 	if (ret < 0) {
 		i_error("LDAP: ldap_result() failed: %s", ldap_get_error(conn));
-		ldap_handle_error(conn);
+		ldap_conn_reconnect(conn);
 	} else {
 		if (!conn->binding)
 			db_ldap_handle_next_delayed_request(conn);


More information about the dovecot-cvs mailing list