From 1f9c26e69f4950bdac2c88e97ae35d7e3487aa58 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 26 Apr 2004 22:46:13 +0000 Subject: [PATCH] do not return entry pointer in case of failure --- servers/slapd/back-ldbm/search.c | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/slapd/back-ldbm/search.c b/servers/slapd/back-ldbm/search.c index 4db79f7740..960209ba12 100644 --- a/servers/slapd/back-ldbm/search.c +++ b/servers/slapd/back-ldbm/search.c @@ -428,6 +428,7 @@ searchit: if ( --op->ors_slimit == -1 ) { cache_return_entry_r( &li->li_cache, e ); rs->sr_err = LDAP_SIZELIMIT_EXCEEDED; + rs->sr_entry = NULL; send_ldap_result( op, rs ); rc = LDAP_SUCCESS; goto done; -- 2.39.5