From: Howard Chu Date: Thu, 9 Jun 2005 23:39:18 +0000 (+0000) Subject: More for prev commit - break from mask_to_verbs when mask has gone to zero X-Git-Tag: OPENLDAP_AC_BP~556 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=62b81c9632ebab52546d9144f63cc421707c82a5;p=openldap More for prev commit - break from mask_to_verbs when mask has gone to zero --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 62fc13e91e..b446dcc4ca 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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;