ITS#9498 replace asserts

Just no-op if trying to close a connection that's already being closed.
This commit is contained in:
Howard Chu 2021-03-26 13:46:56 +00:00
parent 829263c454
commit e6bf5795ac

View File

@ -763,7 +763,8 @@ void connection_closing( Connection *c, const char *why )
assert( connections != NULL );
assert( c != NULL );
assert( c->c_conn_state != SLAP_C_INVALID );
if( c->c_conn_state == SLAP_C_INVALID )
return;
/* c_mutex must be locked by caller */
@ -796,7 +797,8 @@ connection_close( Connection *c )
assert( connections != NULL );
assert( c != NULL );
assert( c->c_conn_state == SLAP_C_CLOSING );
if ( c->c_conn_state != SLAP_C_CLOSING )
return;
/* NOTE: c_mutex should be locked by caller */