]> git.sur5r.net Git - openldap/commitdiff
ITS#2745 reset bei_state when reusing an EntryInfo
authorHoward Chu <hyc@openldap.org>
Mon, 29 Sep 2003 22:01:03 +0000 (22:01 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 29 Sep 2003 22:01:03 +0000 (22:01 +0000)
servers/slapd/back-bdb/cache.c

index baf2230e989a23222bce2b312f45412ee1497f19..211715ab51698c7c84af40e27fb5f94c98680435 100644 (file)
@@ -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 );