From: Howard Chu Date: Mon, 29 Sep 2003 22:01:03 +0000 (+0000) Subject: ITS#2745 reset bei_state when reusing an EntryInfo X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~624 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dcbca288a95cbe641dbdcdd52a05e7914914e4cc;p=openldap ITS#2745 reset bei_state when reusing an EntryInfo --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index baf2230e98..211715ab51 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -37,6 +37,7 @@ bdb_cache_entryinfo_new( Cache *cache ) } if ( ei ) { ei->bei_lrunext = NULL; + ei->bei_state = 0; } else { ei = ch_calloc(1, sizeof(struct bdb_entry_info)); ldap_pvt_thread_mutex_init( &ei->bei_kids_mutex );