From 8c9f033aa5e1de33598aaf01218ef9f61c3dcc92 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 8 Oct 2003 06:05:48 +0000 Subject: [PATCH] Fix prev commit setting NO_GRANDKIDS incorrectly --- servers/slapd/back-bdb/dn2id.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5