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 4, 2025
1 parent e2740b7 commit a1304e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packet++/src/BgpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ namespace pcpp
// Ensure the memory access is within bounds
if (sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen + sizeof(uint16_t) > headerLen)
{
return 0; // Invalid access, return 0
return 0; // Invalid access, return 0
}
uint16_t res =
be16toh(*(uint16_t*)(m_Data + sizeof(bgp_common_header) + sizeof(uint16_t) + withdrawnRouteLen));
Expand Down

0 comments on commit a1304e5

Please sign in to comment.