From f54ba80fe6ff9722f725823ea53b106cde855e12 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 12 Mar 2003 21:49:23 +0000 Subject: [PATCH] Fixed slurpd TLS failure handling (ITS#2253) --- servers/slurpd/ldap_op.c | 3 +++ 1 file changed, 3 insertions(+) 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; } } -- 2.39.5