From: Pierangelo Masarati Date: Sat, 25 Aug 2007 14:58:43 +0000 (+0000) Subject: fix potential concurrency issue (not so potential, if we could regularly trigger... X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~104 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=84143631ee453f6be1a4b05250b9e16df83966d2;p=openldap fix potential concurrency issue (not so potential, if we could regularly trigger it :) --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index 9a22c0176a..bbf780bc1f 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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));