From: Howard Chu Date: Mon, 12 Nov 2007 11:14:55 +0000 (+0000) Subject: Tweak entry parent check X-Git-Tag: OPENLDAP_REL_ENG_2_4_9~20^2~440 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eea5e60bf0b2ec0cc5cfd4065cc188c786ed25b6;p=openldap Tweak entry parent check --- diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index bb6dea16f3..ffb2a3a891 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -303,11 +303,11 @@ retry: /* transaction retry */ dnParent( &e->e_nname, &p_ndn ); } np_ndn = &p_ndn; - if ( p_ndn.bv_len != 0 ) { + eip = ei->bei_parent; + if ( eip && eip->bei_id ) { /* Make sure parent entry exist and we can write its * children. */ - eip = ei->bei_parent; rs->sr_err = bdb_cache_find_id( op, ltid, eip->bei_id, &eip, 0, locker, &plock );