From 92c27ea7d8b97398a09ab8f57898b380199402dc Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 15 Nov 2024 21:53:14 +0300 Subject: [PATCH] nfqws: allow only absolute positive values in seqovl for multisplit/fakedsplit --- nfq/desync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq/desync.c b/nfq/desync.c index 2e28349..4d4553a 100644 --- a/nfq/desync.c +++ b/nfq/desync.c @@ -1212,7 +1212,7 @@ static uint8_t dpi_desync_tcp_packet_play(bool replay, size_t reasm_offset, uint if (dp->desync_mode==DESYNC_FAKEDSPLIT || dp->desync_mode==DESYNC_MULTISPLIT || dp->desync_mode2==DESYNC_FAKEDSPLIT || dp->desync_mode2==DESYNC_MULTISPLIT) { // split seqovl only uses absolute positive values - seqovl_pos = dp->seqovl.marker==PM_ABS ? dp->seqovl.pos : 0; + seqovl_pos = (dp->seqovl.marker==PM_ABS && dp->seqovl.pos>0) ? dp->seqovl.pos : 0; if (seqovl_pos) DLOG("seqovl pos : %zu\n",seqovl_pos); } else if (dp->desync_mode==DESYNC_FAKEDDISORDER || dp->desync_mode==DESYNC_MULTIDISORDER || dp->desync_mode2==DESYNC_FAKEDDISORDER || dp->desync_mode2==DESYNC_MULTIDISORDER)