mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix another crasher if parent is NULL
This commit is contained in:
parent
da758bb150
commit
c09550766b
1 changed files with 1 additions and 1 deletions
|
|
@ -676,7 +676,7 @@ hdb_dn2id(
|
|||
ei->bei_rdn.bv_len = data.size - sizeof(diskNode) - nrlen;
|
||||
ptr = d->nrdn + nrlen + 1;
|
||||
ber_str2bv( ptr, ei->bei_rdn.bv_len, 1, &ei->bei_rdn );
|
||||
if ( !ei->bei_parent->bei_dkids ) {
|
||||
if ( ei->bei_parent != NULL && !ei->bei_parent->bei_dkids ) {
|
||||
db_recno_t dkids;
|
||||
/* How many children does the parent have? */
|
||||
/* FIXME: do we need to lock the parent
|
||||
|
|
|
|||
Loading…
Reference in a new issue