diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index ebc8cc8351..5aefdbba58 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -374,7 +374,7 @@ ldbm_back_modrdn( val.bv_val = new_rdn_vals[a_cnt]; val.bv_len = strlen( val.bv_val ); if ( ! access_allowed( be, conn, op, e, - desc, &val, ACL_WRITE ) ) { + mod_tmp->sml_desc, &val, ACL_WRITE ) ) { Debug( LDAP_DEBUG_TRACE, "ldbm_back_modrdn: access not allowed " "to attr \"%s\"\n%s%s", @@ -432,7 +432,7 @@ ldbm_back_modrdn( val.bv_val = old_rdn_vals[d_cnt]; val.bv_len = strlen( val.bv_val ); if ( ! access_allowed( be, conn, op, e, - desc, &val, ACL_WRITE ) ) { + mod_tmp->sml_desc, &val, ACL_WRITE ) ) { Debug( LDAP_DEBUG_TRACE, "ldbm_back_modrdn: access not allowed " "to attr \"%s\"\n%s%s",