From 3aac54f0891fe682a2a6574d047cc32264cb1c2a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 1 Apr 2006 15:22:13 +0000 Subject: [PATCH] fix bound check (ITS#4449) --- servers/slapd/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5