fix potential concurrency issue (not so potential, if we could regularly trigger it :)

This commit is contained in:
Pierangelo Masarati 2007-08-25 14:58:43 +00:00
parent abca6f16a6
commit 84143631ee

View File

@ -65,7 +65,9 @@ bdb_cache_entryinfo_new( Cache *cache )
cache->c_eifree = ei->bei_lrunext;
}
ldap_pvt_thread_mutex_unlock( &cache->c_eifree_mutex );
ei->bei_finders = 0;
if ( ei ) {
ei->bei_finders = 0;
}
}
if ( !ei ) {
ei = ch_calloc(1, sizeof(EntryInfo));