mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 01:29:59 -05:00
ITS#9498 connection_next: fix validity check
This commit is contained in:
parent
c7763538de
commit
616e5bf1c3
1 changed files with 5 additions and 5 deletions
|
|
@ -919,11 +919,11 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
|
|||
ldap_pvt_thread_mutex_unlock( &connections_mutex );
|
||||
ldap_pvt_thread_mutex_lock( &c->c_mutex );
|
||||
ldap_pvt_thread_mutex_lock( &connections_mutex );
|
||||
if ( c->c_struct_state != SLAP_C_USED ) {
|
||||
ldap_pvt_thread_mutex_unlock( &c->c_mutex );
|
||||
c = NULL;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if ( c->c_struct_state != SLAP_C_USED ) {
|
||||
ldap_pvt_thread_mutex_unlock( &c->c_mutex );
|
||||
c = NULL;
|
||||
continue;
|
||||
}
|
||||
assert( c->c_conn_state != SLAP_C_INVALID );
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue