File nss_ldap.dif of Package nss_ldap

Index: nss_ldap-265/ldap-nss.c
===================================================================
--- nss_ldap-265.orig/ldap-nss.c
+++ nss_ldap-265/ldap-nss.c
@@ -2640,7 +2640,8 @@ do_with_reconnect (const char *base, int
 	   * If a soft reconnect policy is specified, then do not
 	   * try to reconnect to the LDAP server if it is down.
 	   */
-	  if (__session.ls_config->ldc_reconnect_pol == LP_RECONNECT_SOFT)
+	  if ( (__session.ls_config->ldc_reconnect_pol == LP_RECONNECT_SOFT) &&
+               ( tries > 0 ) )
 	    hard = 0;
 
 	  ++tries;
openSUSE Build Service is sponsored by