]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/backglue.c
reject registrations when back-monitor is not configured
[openldap] / servers / slapd / backglue.c
index 936d617fdef43541c1bcc3b284e8e9f1a4c0a6cd..8d719ab1e3f7d03705cc82a210300813d9be878b 100644 (file)
@@ -779,7 +779,7 @@ glue_sub_del( BackendDB *b0 )
 
        /* Find the top backend for this subordinate */
        be = b0;
-       while ( be=LDAP_STAILQ_NEXT( be, be_next )) {
+       while ( (be=LDAP_STAILQ_NEXT( be, be_next )) != NULL ) {
                slap_overinfo *oi;
                slap_overinst *on;
                glueinfo *gi;
@@ -840,7 +840,7 @@ glue_sub_attach()
 
                /* Find the top backend for this subordinate */
                be = ga->ga_be;
-               while ( be=LDAP_STAILQ_NEXT( be, be_next )) {
+               while ( (be=LDAP_STAILQ_NEXT( be, be_next )) != NULL ) {
                        slap_overinfo *oi;
                        slap_overinst *on;
                        glueinfo *gi;