Skip to content

Commit

Permalink
[core] Removed invalid max socket ID check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki authored and maxsharabayko committed Feb 18, 2021
1 parent 3754562 commit 1c7da11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions srtcore/handshake.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,7 @@ bool CHandShake::valid()
if (m_iVersion < CUDT::HS_VERSION_UDT4
|| m_iISN < 0 || m_iISN >= CSeqNo::m_iMaxSeqNo
|| m_iMSS < 32
|| m_iFlightFlagSize < 2
|| m_iID >= CUDTUnited::MAX_SOCKET_VAL)
|| m_iFlightFlagSize < 2)
return false;

return true;
Expand Down

0 comments on commit 1c7da11

Please sign in to comment.