]> git.sur5r.net Git - openldap/commitdiff
TS#4315 fix prev commit, spinning in ldap_back_dobind
authorHoward Chu <hyc@openldap.org>
Mon, 9 Jan 2006 09:37:52 +0000 (09:37 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 9 Jan 2006 09:37:52 +0000 (09:37 +0000)
servers/slapd/back-ldap/bind.c

index 8083428730bcf3312746456718a76b0a83ad4fe2..8fb0a7ad081d4f02baa9d0f5c613d2eab0c2272b 100644 (file)
@@ -665,8 +665,11 @@ ldap_back_dobind_int(
                return rc;
        }
 
-       while ( lc->lc_refcnt > 1 )
+       while ( lc->lc_refcnt > 1 ) {
                ldap_pvt_thread_yield();
+               if (( rc = LDAP_BACK_CONN_ISBOUND( lc )))
+                       return rc;
+       }
 
        /*
         * FIXME: we need to let clients use proxyAuthz