mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
minor cleanup
This commit is contained in:
parent
0fc89b6203
commit
39195e48a3
@ -804,7 +804,7 @@ static int parsePagedResults (
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
if ( ctrl->ldctl_value.bv_len == 0 ) {
|
||||
if ( BER_BVISEMPTY( &ctrl->ldctl_value ) ) {
|
||||
rs->sr_text = "paged results control value is empty (or absent)";
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
@ -890,6 +890,7 @@ static int parsePagedResults (
|
||||
* NOTE: this assumes that the op->ors_slimit be set
|
||||
* before the controls are parsed.
|
||||
*/
|
||||
|
||||
if ( op->ors_slimit > 0 && size >= op->ors_slimit ) {
|
||||
op->o_pagedresults = SLAP_IGNORED_CONTROL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user