]> git.sur5r.net Git - openldap/commitdiff
fixed test on "" (empty) parent dn
authorPierangelo Masarati <ando@openldap.org>
Fri, 6 Jul 2001 14:40:27 +0000 (14:40 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 6 Jul 2001 14:40:27 +0000 (14:40 +0000)
servers/slapd/back-ldbm/modrdn.c

index 090444c7a73d53ba7ae9b59b84f84b91833ef95e..89207e706110625b578ab4ae408bc8b420264fe1 100644 (file)
@@ -161,7 +161,7 @@ ldbm_back_modrdn(
                goto return_results;
        }
 
-       if ( (p_ndn = dn_parent( be, e->e_ndn )) != NULL ) {
+       if ( (p_ndn = dn_parent( be, e->e_ndn )) != NULL && p_ndn[0] != '\0' ) {
                /* Make sure parent entry exist and we can write its 
                 * children.
                 */