mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5409 must reset pagedresults state if no cookie is provided
This commit is contained in:
parent
91c23cbc4d
commit
f0bb1739a7
@ -1160,10 +1160,6 @@ parse_paged_cookie( Operation *op, SlapReply *rs )
|
||||
goto done;
|
||||
}
|
||||
|
||||
} else {
|
||||
/* Initial request. Initialize state. */
|
||||
ps->ps_cookie = 0;
|
||||
ps->ps_count = 0;
|
||||
}
|
||||
|
||||
done:;
|
||||
|
@ -1102,6 +1102,10 @@ static int parsePagedResults (
|
||||
ps->ps_size = size;
|
||||
ps->ps_cookieval = cookie;
|
||||
op->o_pagedresults_state = ps;
|
||||
if ( !cookie.bv_len ) {
|
||||
ps->ps_count = 0;
|
||||
ps->ps_cookie = 0;
|
||||
}
|
||||
|
||||
/* NOTE: according to RFC 2696 3.:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user