From: Howard Chu Date: Wed, 8 Oct 2003 06:05:48 +0000 (+0000) Subject: Fix prev commit setting NO_GRANDKIDS incorrectly X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~607 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8c9f033aa5e1de33598aaf01218ef9f61c3dcc92;p=openldap Fix prev commit setting NO_GRANDKIDS incorrectly --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 1ea506b676..0d3910c30b 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -1054,8 +1054,10 @@ gotit: cx->op->o_tmpfree( save, cx->op->o_tmpmemctx ); if ( nokids ) ei->bei_state |= CACHE_ENTRY_NO_GRANDKIDS; } - cx->rc = 0; + /* Make sure caller knows it had kids! */ + cx->tmp[0]=1; + cx->rc = 0; } else { BDB_IDL_CPY( cx->ids, cx->tmp ); }