From: Pierangelo Masarati Date: Fri, 6 Jul 2001 14:40:27 +0000 (+0000) Subject: fixed test on "" (empty) parent dn X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1258 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da9ea54700a431b263974d036afc7729c1f8a669;p=openldap fixed test on "" (empty) parent dn --- diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index 090444c7a7..89207e7061 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -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. */