]> git.sur5r.net Git - openldap/commitdiff
fix e_private value, goes along with memory leak fix to accesslog.c
authorQuanah Gibson-Mount <quanah@openldap.org>
Sat, 26 Aug 2006 23:20:00 +0000 (23:20 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Sat, 26 Aug 2006 23:20:00 +0000 (23:20 +0000)
servers/slapd/back-bdb/cache.c

index ae7ef6c0ea61fa78b4aadb688fbd656d526ba387..b55b8d053d78fd6202b6fe92a75de97a2fc81351 100644 (file)
@@ -707,6 +707,7 @@ again:      ldap_pvt_thread_rdwr_rlock( &bdb->bi_cache.c_rwlock );
                                &ep->e_nname, eip );
                        if ( *eip ) islocked = 1;
                        if ( rc ) {
+                               ep->e_private = NULL;
 #ifdef SLAP_ZONE_ALLOC
                                bdb_entry_return( bdb, ep, (*eip)->bei_zseq );
 #else
@@ -811,6 +812,7 @@ load1:
                bdb_cache_entryinfo_unlock( *eip );
        }
        if ( ep ) {
+               ep->e_private = NULL;
 #ifdef SLAP_ZONE_ALLOC
                bdb_entry_return( bdb, ep, (*eip)->bei_zseq );
 #else