mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
don't mix code and declarations
This commit is contained in:
parent
de84e6a09d
commit
cd5dda252a
1 changed files with 5 additions and 5 deletions
|
|
@ -586,6 +586,11 @@ glue_op_search ( Operation *op, SlapReply *rs )
|
||||||
assert( tag != LBER_ERROR );
|
assert( tag != LBER_ERROR );
|
||||||
|
|
||||||
if ( BER_BVISEMPTY( &cookie ) ) {
|
if ( BER_BVISEMPTY( &cookie ) ) {
|
||||||
|
/* delete old, create new cookie with NOID */
|
||||||
|
PagedResultsCookie respcookie = (PagedResultsCookie)NOID;
|
||||||
|
ber_len_t oidlen = strlen( gs.ctrls[c]->ldctl_oid );
|
||||||
|
LDAPControl *newctrl;
|
||||||
|
|
||||||
if ( btmp == b0 ) {
|
if ( btmp == b0 ) {
|
||||||
op->o_conn->c_pagedresults_state.ps_be = gi->gi_n[gi->gi_nodes - 1].gn_be;
|
op->o_conn->c_pagedresults_state.ps_be = gi->gi_n[gi->gi_nodes - 1].gn_be;
|
||||||
|
|
||||||
|
|
@ -593,11 +598,6 @@ glue_op_search ( Operation *op, SlapReply *rs )
|
||||||
op->o_conn->c_pagedresults_state.ps_be = gi->gi_n[(i > 0 ? i - 1: 0)].gn_be;
|
op->o_conn->c_pagedresults_state.ps_be = gi->gi_n[(i > 0 ? i - 1: 0)].gn_be;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* delete old, create new cookie with NOID */
|
|
||||||
PagedResultsCookie respcookie = (PagedResultsCookie)NOID;
|
|
||||||
ber_len_t oidlen = strlen( gs.ctrls[c]->ldctl_oid );
|
|
||||||
LDAPControl *newctrl;
|
|
||||||
|
|
||||||
cookie.bv_val = (char *)&respcookie;
|
cookie.bv_val = (char *)&respcookie;
|
||||||
cookie.bv_len = sizeof( PagedResultsCookie );
|
cookie.bv_len = sizeof( PagedResultsCookie );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue