From: Jan Synacek Date: Tue, 21 Aug 2012 12:39:10 +0000 (+0200) Subject: ITS#7340 Fix handling of sets when checking for count constraint X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=057949785ffc3401d37fad3009845797c78666a6;p=openldap ITS#7340 Fix handling of sets when checking for count constraint --- diff --git a/servers/slapd/overlays/constraint.c b/servers/slapd/overlays/constraint.c index c3f9d66abf..2d943a223f 100644 --- a/servers/slapd/overlays/constraint.c +++ b/servers/slapd/overlays/constraint.c @@ -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 )