From: Pierangelo Masarati Date: Tue, 21 Oct 2008 07:56:17 +0000 (+0000) Subject: preserve objectClasses not to be removed (ITS#5760) X-Git-Tag: ACLCHECK_0~1211 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=363f75ca5f6c0f1df6192812e680aa0cd597fb73;p=openldap preserve objectClasses not to be removed (ITS#5760) --- 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++ ) {