]> git.sur5r.net Git - openldap/commitdiff
preserve objectClasses not to be removed (ITS#5760)
authorPierangelo Masarati <ando@openldap.org>
Tue, 21 Oct 2008 07:56:17 +0000 (07:56 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 21 Oct 2008 07:56:17 +0000 (07:56 +0000)
servers/slapd/overlays/rwm.c

index f9301ccf9fc846ccacb3a303745e230098d9ca98..1c8e704751d670a50502ec6c52942a51e70619ec 100644 (file)
@@ -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++ ) {