fixed test on "" (empty) parent dn

This commit is contained in:
Pierangelo Masarati 2001-07-06 14:40:27 +00:00
parent f4acf94c83
commit da9ea54700

View 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.
*/