From 9e9be9c28304f92305e8a0596ce48336cd399b13 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Sun, 28 May 2000 17:26:30 +0000 Subject: [PATCH] SLAPD_SCHEMA_NOT_COMPAT: Mostly working modrdn --- servers/slapd/back-ldbm/modify.c | 3 ++- servers/slapd/back-ldbm/modrdn.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldbm/modify.c b/servers/slapd/back-ldbm/modify.c index 892507489d..00c11f07ec 100644 --- a/servers/slapd/back-ldbm/modify.c +++ b/servers/slapd/back-ldbm/modify.c @@ -369,7 +369,8 @@ delete_values( #ifdef SLAPD_SCHEMA_NOT_COMPAT int match; const char *text; - int rc = value_match( &match, mod->sm_desc, NULL, + int rc = value_match( &match, mod->sm_desc, + mod->sm_desc->ad_type->sat_equality, mod->sm_bvalues[i], a->a_vals[j], &text ); if( rc == LDAP_SUCCESS && match == 0 ) diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index 83474d7787..eeeea36b0e 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -410,7 +410,7 @@ ldbm_back_modrdn( const char *text; mod[1].sml_desc = NULL; - rc = slap_str2ad( old_rdn_type, &mod[0].sml_desc, &text ); + rc = slap_str2ad( old_rdn_type, &mod[1].sml_desc, &text ); if( rc != LDAP_SUCCESS ) { Debug( LDAP_DEBUG_TRACE, -- 2.39.5