Fix bei_state access

http://www.openldap.org/lists/openldap-devel/200805/msg00073.html
This commit is contained in:
Howard Chu 2008-05-19 16:19:59 +00:00
parent b6b3461cf9
commit 4c8efee4a6

View File

@ -1156,7 +1156,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;