]> git.sur5r.net Git - openldap/commitdiff
Minor cleanup of prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 4 Nov 2004 03:10:03 +0000 (03:10 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 4 Nov 2004 03:10:03 +0000 (03:10 +0000)
servers/slapd/overlays/unique.c

index 3d6e2dca5901a44421d1f45559b43d6d98db0101..0f461d2de6696644b8bdb349a40824c5c933a8cb 100644 (file)
@@ -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;