From 9e211e0c723545902a2fc38aa2e9a5d7baa4baa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Duraffort?= Date: Fri, 10 Oct 2008 20:41:25 +0200 Subject: [PATCH] Fix buffer overflow (CID 188) --- modules/access/dvb/en50221.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/access/dvb/en50221.c b/modules/access/dvb/en50221.c index 5f14d67456..9b7f98acfc 100644 --- a/modules/access/dvb/en50221.c +++ b/modules/access/dvb/en50221.c @@ -427,7 +427,7 @@ static void SessionOpen( access_t * p_access, uint8_t i_slot, if ( !p_sys->p_sessions[i_session_id - 1].i_resource_id ) break; } - if ( i_session_id == MAX_SESSIONS ) + if ( i_session_id > MAX_SESSIONS ) { msg_Err( p_access, "too many sessions !" ); return;