Commit 893312a6 authored by Rémi Duraffort's avatar Rémi Duraffort Committed by Derk-Jan Hartman

Fix buffer overflow (CID 188)

(cherry picked from commit 9e211e0c)
Signed-off-by: default avatarDerk-Jan Hartman <hartman@videolan.org>
parent ce8aaa1a
......@@ -422,7 +422,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment