]> git.sur5r.net Git - openldap/commitdiff
Remove misplaced asserts. connection_resched changes connection state
authorKurt Zeilenga <kurt@openldap.org>
Fri, 27 Aug 1999 19:31:42 +0000 (19:31 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 27 Aug 1999 19:31:42 +0000 (19:31 +0000)
to UNUSED without holding connections mutex.  It's not safe for
connection_init to check connection state until after acquires the
c_mutex.

servers/slapd/connection.c

index d83be471d8b434afb830505442092f51c7303f91..1599fa5a6996064a0242bb72a3d0b76c26607b64 100644 (file)
@@ -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;