From 2b44c72d849cfb8de824347a7f87b502f4275c83 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 20 Dec 2003 14:35:13 +0000 Subject: [PATCH] Fix handling of an_oc_exclude --- servers/slapd/repl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/repl.c b/servers/slapd/repl.c index c4029df925..6a54a9bb74 100644 --- a/servers/slapd/repl.c +++ b/servers/slapd/repl.c @@ -310,10 +310,11 @@ replog1( for ( an = ri->ri_attrs; an->an_name.bv_val; an++ ) { if ( an->an_oc ) { ocs = 1; + match |= an->an_oc_exclude; if ( ml->sml_bvalues[i].bv_len == an->an_name.bv_len && !strcasecmp(ml->sml_bvalues[i].bv_val, an->an_name.bv_val ) ) { - match = 1 ^ an->an_oc_exclude; + match = !an->an_oc_exclude; break; } } @@ -385,10 +386,11 @@ replog1( for ( an = ri->ri_attrs; an->an_name.bv_val; an++ ) { if ( an->an_oc ) { ocs = 1; + match |= an->an_oc_exclude; if ( a->a_vals[i].bv_len == an->an_name.bv_len && !strcasecmp(a->a_vals[i].bv_val, an->an_name.bv_val ) ) { - match = 1 ^ an->an_oc_exclude; + match = !an->an_oc_exclude; break; } } -- 2.39.5