From: Kurt Zeilenga Date: Fri, 11 Jun 1999 23:19:31 +0000 (+0000) Subject: Add additional assert in connection get for race debugging. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~335 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0dda34c9e44de773beb25d119989589cd53b746e;p=openldap Add additional assert in connection get for race debugging. --- 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 ) );