Commit e6bf5795 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#9498 replace asserts

Just no-op if trying to close a connection that's already being closed.
parent 829263c4
Pipeline #2259 failed with stage
in 4 minutes and 50 seconds
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment