Skip to content

Commit

Permalink
netkvm: correct validation of segmentable UDP packet
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Benditovich <[email protected]>
  • Loading branch information
ybendito authored and YanVugenfirer committed Apr 7, 2024
1 parent eed3ceb commit 53d0f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NetKVM/Common/ParaNdis_TX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ bool CNBL::ParseLSO()
#if PARANDIS_SUPPORT_USO
bool CNBL::ParseUSO()
{
if (m_MaxDataLength > PARANDIS_MAX_LSO_SIZE + (ULONGLONG)LsoTcpHeaderOffset() + sizeof(UDPHeader))
if (m_MaxDataLength > PARANDIS_MAX_USO_SIZE + (ULONGLONG)m_UsoInfo.Transmit.UdpHeaderOffset + sizeof(UDPHeader))
return false;
if (!m_UsoInfo.Transmit.MSS || !m_UsoInfo.Transmit.UdpHeaderOffset)
return false;
Expand Down

0 comments on commit 53d0f84

Please sign in to comment.