From: Howard Chu Date: Thu, 4 Nov 2004 03:10:03 +0000 (+0000) Subject: Minor cleanup of prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~369 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9ebcc83796a767bbb770c1599fe84f104079623a;p=openldap Minor cleanup of prev commit --- diff --git a/servers/slapd/overlays/unique.c b/servers/slapd/overlays/unique.c index 3d6e2dca59..0f461d2de6 100644 --- a/servers/slapd/overlays/unique.c +++ b/servers/slapd/overlays/unique.c @@ -267,9 +267,9 @@ static int count_filter_len( if(!up) break; } if(b && b[0].bv_val) for(i = 0; b[i].bv_val; i++) - ks += b[i].bv_len + ad->ad_cname.bv_len + 3; + ks += b[i].bv_len + ad->ad_cname.bv_len + STRLENOF( "(=)" ); else if(ud->strict) - ks += ad->ad_cname.bv_len + 4; /* (attr=*) */ + ks += ad->ad_cname.bv_len + STRLENOF( "(=*)" ); /* (attr=*) */ break; } return ks;