From 057949785ffc3401d37fad3009845797c78666a6 Mon Sep 17 00:00:00 2001 From: Jan Synacek Date: Tue, 21 Aug 2012 14:39:10 +0200 Subject: [PATCH] ITS#7340 Fix handling of sets when checking for count constraint --- servers/slapd/overlays/constraint.c | 3 +++ 1 file changed, 3 insertions(+) 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 ) -- 2.39.5