From c09550766b82016b3ea9455cb624b7e41e37f680 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 19 Jul 2005 01:37:48 +0000 Subject: [PATCH] Fix another crasher if parent is NULL --- servers/slapd/back-bdb/dn2id.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 2d362830ae..526ba39495 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -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 -- 2.39.5