From: Quanah Gibson-Mount Date: Tue, 20 May 2008 01:31:51 +0000 (+0000) Subject: Fix bei_state access X-Git-Tag: OPENLDAP_REL_ENG_2_3_42~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33326eb116098e898917d810b3c1f278a81665b3;p=thirdparty%2Fopenldap.git Fix bei_state access --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 3167f45b22..5f8d99b455 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -1152,7 +1152,11 @@ gotit: } cx->depth--; cx->op->o_tmpfree( save, cx->op->o_tmpmemctx ); - if ( nokids ) ei->bei_state |= CACHE_ENTRY_NO_GRANDKIDS; + if ( nokids ) { + bdb_cache_entryinfo_lock( ei ); + ei->bei_state |= CACHE_ENTRY_NO_GRANDKIDS; + bdb_cache_entryinfo_unlock( ei ); + } } /* Make sure caller knows it had kids! */ cx->tmp[0]=1;