]> git.sur5r.net Git - openldap/commitdiff
Backout last change... finish my first coke... try again later...
authorKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 1999 18:30:56 +0000 (18:30 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 5 Apr 1999 18:30:56 +0000 (18:30 +0000)
servers/slapd/back-ldbm/cache.c

index 034301cebe4f44b6093e852f267fdaab6181b847..5386735fcc12d0f8eb86ee089b1be3a636393122 100644 (file)
@@ -553,12 +553,17 @@ try_again:
                LRU_ADD( cache, ep );
                 
                LEI(ep)->lei_refcnt++;
+
+               /* free cache mutex */
+               ldap_pvt_thread_mutex_unlock( &cache->c_mutex );
+
+               return( ep );
        }
 
        /* free cache mutex */
        ldap_pvt_thread_mutex_unlock( &cache->c_mutex );
 
-       return( ep );
+       return( NULL );
 }
 
 /*