mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix handling for empty results
This commit is contained in:
parent
eab5b9570a
commit
5f211a7dcc
@ -536,6 +536,9 @@ static void send_entry(
|
|||||||
"%s: response control: status=%d, text=%s\n",
|
"%s: response control: status=%d, text=%s\n",
|
||||||
debug_header, rs->sr_err, SAFESTR(rs->sr_text, "<None>"));
|
debug_header, rs->sr_err, SAFESTR(rs->sr_text, "<None>"));
|
||||||
|
|
||||||
|
if ( !so->so_tree )
|
||||||
|
return;
|
||||||
|
|
||||||
/* RFC 2891: If critical then send the entries iff they were
|
/* RFC 2891: If critical then send the entries iff they were
|
||||||
* succesfully sorted. If non-critical send all entries
|
* succesfully sorted. If non-critical send all entries
|
||||||
* whether they were sorted or not.
|
* whether they were sorted or not.
|
||||||
@ -811,8 +814,11 @@ static int sssvlv_op_search(
|
|||||||
} else {
|
} else {
|
||||||
so->so_paged = 0;
|
so->so_paged = 0;
|
||||||
so->so_page_size = 0;
|
so->so_page_size = 0;
|
||||||
if ( vc )
|
if ( vc ) {
|
||||||
so->so_vlv = op->o_ctrlflag[vlv_cid];
|
so->so_vlv = op->o_ctrlflag[vlv_cid];
|
||||||
|
so->so_vlv_target = 0;
|
||||||
|
so->so_vlv_rc = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
so->so_vcontext = (unsigned long)so;
|
so->so_vcontext = (unsigned long)so;
|
||||||
so->so_nentries = 0;
|
so->so_nentries = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user