From a1f3495f0780beb31b7633053f47b1d814dbabe9 Mon Sep 17 00:00:00 2001 From: seladb Date: Tue, 24 Sep 2024 01:55:15 -0700 Subject: [PATCH] Move debug log --- Packet++/src/TcpReassembly.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Packet++/src/TcpReassembly.cpp b/Packet++/src/TcpReassembly.cpp index cc400432b2..3a0a0a168d 100644 --- a/Packet++/src/TcpReassembly.cpp +++ b/Packet++/src/TcpReassembly.cpp @@ -232,13 +232,15 @@ namespace pcpp // if this side already got FIN or RST packet before, ignore this packet as this side is considered closed if (tcpReassemblyData->twoSides[sideIndex].gotFinOrRst) { - PCPP_LOG_DEBUG("Got a packet after FIN or RST were already seen on this side (" - << static_cast(sideIndex) << "). Ignoring this packet"); if (!tcpReassemblyData->twoSides[1 - sideIndex].gotFinOrRst && isRst) { handleFinOrRst(tcpReassemblyData, 1 - sideIndex, flowKey, isRst); return FIN_RSTWithNoData; } + + PCPP_LOG_DEBUG("Got a packet after FIN or RST were already seen on this side (" + << static_cast(sideIndex) << "). Ignoring this packet"); + return Ignore_PacketOfClosedFlow; }