]> git.sur5r.net Git - openldap/commitdiff
Fix paged search initialization
authorHoward Chu <hyc@openldap.org>
Mon, 12 Apr 2004 17:59:27 +0000 (17:59 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 12 Apr 2004 17:59:27 +0000 (17:59 +0000)
servers/slapd/back-bdb/search.c

index 170059eaed002f14ff25caba70e1fc4be3458e68..cb060ac5842a3c74efec0fb4cc98a51f3cdfc71b 100644 (file)
@@ -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 ) {