From da9ea54700a431b263974d036afc7729c1f8a669 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 6 Jul 2001 14:40:27 +0000 Subject: [PATCH] fixed test on "" (empty) parent dn --- servers/slapd/back-ldbm/modrdn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.39.5