]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
fix ITS#1761
authorPierangelo Masarati <ando@openldap.org>
Fri, 19 Apr 2002 18:37:51 +0000 (18:37 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 19 Apr 2002 18:37:51 +0000 (18:37 +0000)
CHANGES
servers/slapd/back-ldbm/modrdn.c

diff --git a/CHANGES b/CHANGES
index 0b203ebb77d9917db0cbedebb9a97e1e88547cde..e6beb1df3be74af711d344575816cea75192677f 100644 (file)
--- 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
 
index eacc4d9ca8c01dddb88c79d65a0c663b6ee49815..eef4ab413ea8734141caa9720efa9f68dfbf9251 100644 (file)
@@ -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 };