From 7a631b1985125537a29ef99b63a21fa850dfbfdb Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 19 Apr 2002 18:37:51 +0000 Subject: [PATCH] fix ITS#1761 --- CHANGES | 1 + servers/slapd/back-ldbm/modrdn.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 0b203ebb77..e6beb1df3b 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,7 @@ OpenLDAP 2.0.24 Engineering Fixed slapd acl group/dnaddr bug (ITS#1607) Fixed ber_bvstrdup() empty string ("") bug (ITS#1662) Fixed back-ldbm dn normalization bug in onelevel searches (ITS#1654) + Fixed back-ldbm modrdn root dn check (ITS#1761) Documentation Updated release documents diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index eacc4d9ca8..eef4ab413e 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -175,7 +175,7 @@ ldbm_back_modrdn( } else { /* no parent, must be root to modify rdn */ isroot = be_isroot( be, op->o_ndn ); - if ( ! be_isroot ) { + if ( ! isroot ) { if ( be_issuffix( be, "" ) || be_isupdate( be, op->o_ndn ) ) { static const Entry rootp = { NOID, "", "", NULL, NULL }; @@ -296,7 +296,7 @@ ldbm_back_modrdn( isroot = be_isroot( be, op->o_ndn ); } - if ( ! be_isroot ) { + if ( ! isroot ) { if ( be_issuffix( be, "" ) || be_isupdate( be, op->o_ndn ) ) { static const Entry rootp = { NOID, "", "", NULL, NULL }; -- 2.39.5