mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-11 17:29:16 +05:00
nfqws: desync condition fix
This commit is contained in:
parent
029a5cada9
commit
3fc6b86cf5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user