From 0dda34c9e44de773beb25d119989589cd53b746e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 11 Jun 1999 23:19:31 +0000 Subject: [PATCH] Add additional assert in connection get for race debugging. --- servers/slapd/connection.c | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 311cdc7d0f..8204126b91 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -160,6 +160,7 @@ static Connection* connection_get( int s ) ldap_pvt_thread_mutex_lock( &c->c_mutex ); + assert( c->c_struct_state == SLAP_C_USED ); assert( c->c_conn_state != SLAP_C_INVALID ); assert( ber_pvt_sb_in_use( c->c_sb ) ); -- 2.39.5