From: Pierangelo Masarati Date: Mon, 26 Apr 2004 22:46:13 +0000 (+0000) Subject: do not return entry pointer in case of failure X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~426 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1f9c26e69f4950bdac2c88e97ae35d7e3487aa58;p=openldap do not return entry pointer in case of failure --- 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;