mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
From rev 1.373, releasing the mutex means connection_close() may get called
from another thread. Drop the assert, just return instead.
This commit is contained in:
parent
40a893a07e
commit
354e90a0d9
1 changed files with 4 additions and 1 deletions
|
|
@ -853,8 +853,11 @@ connection_close( Connection *c )
|
|||
|
||||
assert( connections != NULL );
|
||||
assert( c != NULL );
|
||||
|
||||
if ( c->c_conn_state != SLAP_C_CLOSING )
|
||||
return;
|
||||
|
||||
assert( c->c_struct_state == SLAP_C_USED );
|
||||
assert( c->c_conn_state == SLAP_C_CLOSING );
|
||||
|
||||
/* NOTE: c_mutex should be locked by caller */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue