From: Pierangelo Masarati Date: Sat, 1 Apr 2006 15:22:13 +0000 (+0000) Subject: fix bound check (ITS#4449) X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~63 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3aac54f0891fe682a2a6574d047cc32264cb1c2a;p=openldap fix bound check (ITS#4449) --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 300f03b382..00abf21825 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1075,7 +1075,7 @@ Connection* connection_next( Connection *c, ber_socket_t *index ) assert( connections != 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 );