From: Kurt Zeilenga Date: Wed, 5 Apr 2006 20:08:48 +0000 (+0000) Subject: fd arrary bound check X-Git-Tag: OPENLDAP_REL_ENG_2_3_21~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a787a8b15249d3206c813fe2a802274013797b5d;p=openldap fd arrary bound check --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 5f01a04362..7482ed4ce2 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1043,7 +1043,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 );