From: Kurt Zeilenga Date: Wed, 12 Mar 2003 21:49:23 +0000 (+0000) Subject: Fixed slurpd TLS failure handling (ITS#2253) X-Git-Tag: OPENLDAP_REL_ENG_2_1_16~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f54ba80fe6ff9722f725823ea53b106cde855e12;p=thirdparty%2Fopenldap.git Fixed slurpd TLS failure handling (ITS#2253) --- diff --git a/servers/slurpd/ldap_op.c b/servers/slurpd/ldap_op.c index c2efec4bae..44aa465c45 100644 --- a/servers/slurpd/ldap_op.c +++ b/servers/slurpd/ldap_op.c @@ -762,6 +762,7 @@ do_bind( return( BIND_ERR_BADRI ); } +retry: if ( ri->ri_ldp != NULL ) { ldrc = ldap_unbind( ri->ri_ldp ); if ( ldrc != LDAP_SUCCESS ) { @@ -868,6 +869,8 @@ do_bind( ri->ri_ldp = NULL; return BIND_ERR_TLS_FAILED; } + ri->ri_tls = TLS_OFF; + goto retry; } }