Commit 9e211e0c authored by Rémi Duraffort's avatar Rémi Duraffort

Fix buffer overflow (CID 188)

parent fe7f6631
......@@ -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;
......
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