From 84143631ee453f6be1a4b05250b9e16df83966d2 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 25 Aug 2007 14:58:43 +0000 Subject: [PATCH] fix potential concurrency issue (not so potential, if we could regularly trigger it :) --- servers/slapd/back-bdb/cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- 2.39.5