]> git.sur5r.net Git - openldap/commitdiff
Same as ITS#4464, don't call cache_return_entry with NULL entry
authorHoward Chu <hyc@openldap.org>
Tue, 4 Apr 2006 09:56:34 +0000 (09:56 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 4 Apr 2006 09:56:34 +0000 (09:56 +0000)
servers/slapd/back-ldbm/compare.c

index ab6022809edb02bc53923fb0148ca8dfdd4721d3..7100bed6ed58171c4c093bbcd7f4c496ccaafe61 100644 (file)
@@ -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 );