]> git.sur5r.net Git - openldap/commitdiff
fix potential concurrency issue (not so potential, if we could regularly trigger...
authorPierangelo Masarati <ando@openldap.org>
Sat, 25 Aug 2007 14:58:43 +0000 (14:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 25 Aug 2007 14:58:43 +0000 (14:58 +0000)
servers/slapd/back-bdb/cache.c

index 9a22c0176a777dc80babc9cacfb2d0bfb133f68b..bbf780bc1f8d124f8d2e7726ecd897fdfd4de438 100644 (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));