nfqws: desync condition fix

This commit is contained in:
bol-van 2024-08-18 19:18:41 +03:00
parent 029a5cada9
commit 3fc6b86cf5

View File

@ -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;