From: Kurt Zeilenga Date: Mon, 26 Aug 2002 19:29:34 +0000 (+0000) Subject: Add a Connection pointer to the Operation. X-Git-Tag: NO_SLAP_OP_BLOCKS~1169 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1c5725010efe7867dacfe30cb7c6d25f6864f78a;p=openldap Add a Connection pointer to the Operation. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 04cc49eaef..374bc73f5c 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1424,10 +1424,9 @@ connection_input( op = slap_op_alloc( ber, msgid, tag, conn->c_n_ops_received++ ); + op->o_conn = conn; op->vrFilter = NULL; - op->o_pagedresults_state = conn->c_pagedresults_state; - #ifdef LDAP_CONNECTIONLESS op->o_peeraddr = peeraddr; if (cdn) { @@ -1435,6 +1434,7 @@ connection_input( op->o_protocol = LDAP_VERSION2; } #endif + if ( conn->c_conn_state == SLAP_C_BINDING || conn->c_conn_state == SLAP_C_CLOSING ) { diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 96f7747cdc..fc1bd20a43 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -1508,6 +1508,7 @@ typedef struct slap_paged_state { typedef struct slap_op { unsigned long o_opid; /* id of this operation */ unsigned long o_connid; /* id of conn initiating this op */ + struct slap_conn *o_conn; /* connection spawning this op */ ber_int_t o_msgid; /* msgid of the request */ ber_int_t o_protocol; /* version of the LDAP protocol used by client */