Skip to content

Commit

Permalink
Fix buffer overflow (CID 188)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoire committed Oct 10, 2008
1 parent fe7f663 commit 9e211e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/access/dvb/en50221.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e211e0

Please sign in to comment.