From: Howard Chu Date: Mon, 12 Apr 2004 17:59:27 +0000 (+0000) Subject: Fix paged search initialization X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~45 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d5df8e3f40be0ff91e9065925e3059d175fdb6f4;p=openldap Fix paged search initialization --- diff --git a/servers/slapd/back-bdb/search.c b/servers/slapd/back-bdb/search.c index 170059eaed..cb060ac584 100644 --- a/servers/slapd/back-bdb/search.c +++ b/servers/slapd/back-bdb/search.c @@ -753,7 +753,7 @@ dn2entry_retry: if ( get_pagedresults(sop) ) { if ( sop->o_pagedresults_state.ps_cookie == 0 ) { - id = 0; + id = bdb_idl_first( candidates, &cursor ); } else { if ( sop->o_pagedresults_size == 0 ) {