]> git.sur5r.net Git - openldap/commitdiff
More for prev commit - break from mask_to_verbs when mask has gone to zero
authorHoward Chu <hyc@openldap.org>
Thu, 9 Jun 2005 23:39:18 +0000 (23:39 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 9 Jun 2005 23:39:18 +0000 (23:39 +0000)
servers/slapd/config.c

index 62fc13e91eff25e3b4f09510aa8960c3ac1c3eb2..b446dcc4ca7ae7705e45f9979ecb8879ecca5b9d 100644 (file)
@@ -732,6 +732,7 @@ mask_to_verbs(slap_verbmasks *v, slap_mask_t m, BerVarray *bva) {
                if (( m & v[i].mask ) == v[i].mask ) {
                        value_add_one( bva, &v[i].word );
                        m ^= v[i].mask;
+                       if ( !m ) break;
                }
        }
        return 0;