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
...@@ -763,7 +763,8 @@ void connection_closing( Connection *c, const char *why ) ...@@ -763,7 +763,8 @@ void connection_closing( Connection *c, const char *why )
assert( connections != NULL ); assert( connections != NULL );
assert( c != 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 */ /* c_mutex must be locked by caller */
...@@ -796,7 +797,8 @@ connection_close( Connection *c ) ...@@ -796,7 +797,8 @@ connection_close( Connection *c )
assert( connections != NULL ); assert( connections != NULL );
assert( c != 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 */ /* NOTE: c_mutex should be locked by caller */
......
Supports Markdown
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