From 363f75ca5f6c0f1df6192812e680aa0cd597fb73 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 21 Oct 2008 07:56:17 +0000 Subject: [PATCH] preserve objectClasses not to be removed (ITS#5760) --- servers/slapd/overlays/rwm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/rwm.c b/servers/slapd/overlays/rwm.c index f9301ccf9f..1c8e704751 100644 --- a/servers/slapd/overlays/rwm.c +++ b/servers/slapd/overlays/rwm.c @@ -1177,7 +1177,9 @@ remove_oc:; last--; bv--; - } else if ( mapped.bv_val != bv[0].bv_val ) { + } else if ( mapped.bv_val != bv[0].bv_val + && ber_bvstrcasecmp( &mapped, &bv[0] ) != 0 ) + { int i; for ( i = 0; !BER_BVISNULL( &(*ap)->a_vals[ i ] ); i++ ) { -- 2.39.5