Skip to content

Commit

Permalink
Fix format err
Browse files Browse the repository at this point in the history
  • Loading branch information
aled-ua authored Jan 10, 2025
1 parent 1493433 commit ac92d06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Packet++/src/UdpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace pcpp
if (m_DataLen < sizeof(udphdr))
{
PCPP_LOG_ERROR("Buffer too small to access source port");
return 0; // Return an invalid port number
return 0; // Return an invalid port number
}
return be16toh(getUdpHeader()->portSrc);
}
Expand All @@ -50,7 +50,7 @@ namespace pcpp
if (m_DataLen < sizeof(udphdr))
{
PCPP_LOG_ERROR("Buffer too small to access destination port");
return 0; // Return an invalid port number
return 0; // Return an invalid port number
}
return be16toh(getUdpHeader()->portDst);
}
Expand Down

0 comments on commit ac92d06

Please sign in to comment.