From 272211fbcdeadfed164b3184d536520c865ae819 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 4 Apr 2006 09:56:34 +0000 Subject: [PATCH] Same as ITS#4464, don't call cache_return_entry with NULL entry --- servers/slapd/back-ldbm/compare.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5