Skip to content

Commit

Permalink
Fixed ArpLayer zeroing only the first 8 bytes of the buffer, instead …
Browse files Browse the repository at this point in the history
…of the entire buffer.
  • Loading branch information
Dimi1010 committed Jan 8, 2025
1 parent d0a507a commit f343c74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Packet++/src/ArpLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace pcpp
constexpr size_t headerLen = sizeof(arphdr);
m_DataLen = headerLen;
m_Data = new uint8_t[headerLen];
memset(m_Data, 0, sizeof(headerLen));
memset(m_Data, 0, headerLen);
m_Protocol = ARP;

arphdr* arpHeader = getArpHeader();
Expand Down

0 comments on commit f343c74

Please sign in to comment.