From cdeda34029a5ff8b2586ec2b254662ca897c5b26 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 12 Mar 2004 18:22:37 +0000 Subject: [PATCH] Add c_conn_idx, to simplify external modules managing per-connection state --- servers/slapd/connection.c | 4 ++++ servers/slapd/slap.h | 1 + 2 files changed, 5 insertions(+) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 6e2c934847..b394cc062e 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -92,6 +92,8 @@ static ldap_pvt_thread_start_t connection_operation; */ int connections_init(void) { + int i; + assert( connections == NULL ); if( connections != NULL) { @@ -126,6 +128,8 @@ int connections_init(void) assert( connections[0].c_struct_state == SLAP_C_UNINITIALIZED ); assert( connections[dtblsize-1].c_struct_state == SLAP_C_UNINITIALIZED ); + for (i=0; i