From: Kurt Zeilenga Date: Fri, 27 Aug 1999 19:31:42 +0000 (+0000) Subject: Remove misplaced asserts. connection_resched changes connection state X-Git-Tag: TWEB_OL_BASE~96 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0afcadc4ddcdb0b824f6d9a90a19999c66475ae1;p=openldap Remove misplaced asserts. connection_resched changes connection state to UNUSED without holding connections mutex. It's not safe for connection_init to check connection state until after acquires the c_mutex. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index d83be471d8..1599fa5a69 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -348,8 +348,6 @@ long connection_init( #endif assert( c != NULL ); - assert( c->c_struct_state != SLAP_C_USED ); - assert( c->c_conn_state == SLAP_C_INVALID ); if( c->c_struct_state == SLAP_C_UNINITIALIZED ) { c->c_dn = NULL;