From: Howard Chu Date: Tue, 4 Apr 2006 09:56:34 +0000 (+0000) Subject: Same as ITS#4464, don't call cache_return_entry with NULL entry X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~31 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=272211fbcdeadfed164b3184d536520c865ae819;p=openldap Same as ITS#4464, don't call cache_return_entry with NULL entry --- diff --git a/servers/slapd/back-ldbm/compare.c b/servers/slapd/back-ldbm/compare.c index ab6022809e..7100bed6ed 100644 --- a/servers/slapd/back-ldbm/compare.c +++ b/servers/slapd/back-ldbm/compare.c @@ -107,7 +107,7 @@ ldbm_back_compare( } return_results:; - cache_return_entry_r( &li->li_cache, e ); + if ( e ) cache_return_entry_r( &li->li_cache, e ); ldap_pvt_thread_rdwr_runlock(&li->li_giant_rwlock); send_ldap_result( op, rs );