]> git.sur5r.net Git - openldap/commitdiff
ITS#7340 Fix handling of sets when checking for count constraint
authorJan Synacek <jsynacek@redhat.com>
Tue, 21 Aug 2012 12:39:10 +0000 (14:39 +0200)
committerHoward Chu <hyc@openldap.org>
Tue, 21 Aug 2012 18:57:59 +0000 (11:57 -0700)
servers/slapd/overlays/constraint.c

index c3f9d66abf7771132c63790135786b8aa4937f22..2d943a223f73b0e272a3b96666f42d5e11065f28 100644 (file)
@@ -845,6 +845,9 @@ constraint_check_count_violation( Modifications *m, Entry *target_entry, constra
        unsigned ca;
        int j;
 
+       if ( cp->set )
+               return 0;
+
        for ( j = 0; cp->ap[j]; j++ ) {
                /* Get this attribute count */
                if ( target_entry )