mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
fix bound check (ITS#4449)
This commit is contained in:
parent
fc89650cce
commit
3aac54f089
@ -1075,7 +1075,7 @@ Connection* connection_next( Connection *c, ber_socket_t *index )
|
|||||||
|
|
||||||
assert( connections != NULL );
|
assert( connections != NULL );
|
||||||
assert( index != NULL );
|
assert( index != NULL );
|
||||||
assert( *index >= 0 && *index < MCA_ARRAY_SIZE );
|
assert( *index >= 0 && *index <= dtblsize );
|
||||||
|
|
||||||
if( c != NULL ) ldap_pvt_thread_mutex_unlock( &c->c_mutex );
|
if( c != NULL ) ldap_pvt_thread_mutex_unlock( &c->c_mutex );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user