From 3fc6b86cf5f095d4cbdbb40dadd2068f887abef7 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 18 Aug 2024 19:18:41 +0300 Subject: [PATCH] nfqws: desync condition fix --- nfq/desync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfq/desync.c b/nfq/desync.c index bd500c9..c2b4af6 100644 --- a/nfq/desync.c +++ b/nfq/desync.c @@ -479,7 +479,7 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint uint8_t verdict=VERDICT_PASS; // additional safety check - if (!!ip != !!ip6hdr) return verdict; + if (!!ip == !!ip6hdr) return verdict; t_ctrack *ctrack=NULL, *ctrack_replay=NULL; bool bReverse=false; @@ -1197,7 +1197,7 @@ static uint8_t dpi_desync_udp_packet_play(bool replay, size_t reasm_offset, uint uint8_t verdict=VERDICT_PASS; // additional safety check - if (!!ip != !!ip6hdr) return verdict; + if (!!ip == !!ip6hdr) return verdict; // no need to desync middle packets in reasm session if (reasm_offset) return verdict;