]> git.sur5r.net Git - openldap/commitdiff
Add additional assert in connection get for race debugging.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 11 Jun 1999 23:19:31 +0000 (23:19 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 11 Jun 1999 23:19:31 +0000 (23:19 +0000)
servers/slapd/connection.c

index 311cdc7d0fb64a1b04fa2a896e81ec0bca5d9652..8204126b91076ebac6beab340ea457b1c8ea8ffa 100644 (file)
@@ -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 ) );