From cd5dda252a5a07bfabcb24e696147e32f66fa73d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 8 Apr 2010 00:27:18 +0000 Subject: [PATCH] don't mix code and declarations --- servers/slapd/backglue.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index f983bd0113..2f7908c348 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -586,6 +586,11 @@ glue_op_search ( Operation *op, SlapReply *rs ) assert( tag != LBER_ERROR ); 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 ) { 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; } - /* 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_len = sizeof( PagedResultsCookie ); -- 2.39.5