]> git.sur5r.net Git - openldap/commitdiff
better fix
authorPierangelo Masarati <ando@openldap.org>
Sat, 25 Aug 2007 15:01:27 +0000 (15:01 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 25 Aug 2007 15:01:27 +0000 (15:01 +0000)
servers/slapd/back-bdb/cache.c

index bbf780bc1f8d124f8d2e7726ecd897fdfd4de438..c6d48112ce7cbf8a8878046d19ef3c47c27dd34f 100644 (file)
@@ -63,11 +63,9 @@ bdb_cache_entryinfo_new( Cache *cache )
                if ( cache->c_eifree ) {
                        ei = cache->c_eifree;
                        cache->c_eifree = ei->bei_lrunext;
-               }
-               ldap_pvt_thread_mutex_unlock( &cache->c_eifree_mutex );
-               if ( ei ) {
                        ei->bei_finders = 0;
                }
+               ldap_pvt_thread_mutex_unlock( &cache->c_eifree_mutex );
        }
        if ( !ei ) {
                ei = ch_calloc(1, sizeof(EntryInfo));