From: Howard Chu Date: Fri, 12 Mar 2004 18:22:37 +0000 (+0000) Subject: Add c_conn_idx, to simplify external modules managing per-connection state X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~308 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cdeda34029a5ff8b2586ec2b254662ca897c5b26;p=openldap Add c_conn_idx, to simplify external modules managing per-connection state --- 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