mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
ITS#9498 replace asserts
Just no-op if trying to close a connection that's already being closed.
This commit is contained in:
parent
829263c454
commit
e6bf5795ac
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user