Skip to content

Commit

Permalink
fix kni
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Nov 5, 2024
1 parent 1f690a9 commit a6eabd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Pcap++/src/KniDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,11 +610,10 @@ namespace pcpp
MBufRawPacket** allocated = CPP_VLA(MBufRawPacket*, arrLength);
uint16_t allocated_count = 0, packetsSent = 0;
MBufRawPacket* rawPacket;
RawPacket* raw_pkt;

for (uint16_t i = 0; i < arrLength; ++i)
{
raw_pkt = packetsArr[i]->getRawPacketReadOnly();
const auto *raw_pkt = packetsArr[i]->getRawPacketReadOnly();
uint8_t raw_type = raw_pkt->getObjectType();
if (raw_type != MBUFRAWPACKET_OBJECT_TYPE)
{
Expand Down

0 comments on commit a6eabd0

Please sign in to comment.