From: Pierangelo Masarati Date: Fri, 25 Nov 2005 01:26:10 +0000 (+0000) Subject: set limits as appropriate X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~704 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=473f3ab840ae1d8d026e3c0a7d16f232f90867bb;p=openldap set limits as appropriate --- diff --git a/servers/slapd/search.c b/servers/slapd/search.c index d1be21a983..6d9f57480a 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -283,6 +283,13 @@ fe_op_search( Operation *op, SlapReply *rs ) rs->sr_err = test_filter( op, entry, op->ors_filter ); if( rs->sr_err == LDAP_COMPARE_TRUE ) { + /* note: we set no limits because either + * no limit is specified, or at least 1 + * is specified, and we're going to return + * at most one entry */ + op->ors_slimit = SLAP_NO_LIMIT; + op->ors_tlimit = SLAP_NO_LIMIT; + rs->sr_entry = entry; rs->sr_attrs = op->ors_attrs; rs->sr_operational_attrs = NULL;