From db875ed1d43dd010200adc0623a9b80261d58a9c Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 12 Dec 2025 20:20:12 +0300 Subject: [PATCH] nfqws2: cancel reasm if server window size is smaller than expected reasm size --- nfq2/desync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq2/desync.c b/nfq2/desync.c index b9bcc02..98aa55f 100644 --- a/nfq2/desync.c +++ b/nfq2/desync.c @@ -410,7 +410,7 @@ static bool reasm_start(t_ctrack *ctrack, t_reassemble *reasm, uint8_t proto, ui static bool reasm_client_start(t_ctrack *ctrack, uint8_t proto, size_t sz, size_t szMax, const uint8_t *data_payload, size_t len_payload) { if (!ctrack) return false; - if (proto==IPPROTO_TCP && ctrack->pos.server.winsize_calc < szMax) + if (proto==IPPROTO_TCP && ctrack->pos.server.winsize_calc < sz) { // this is rare but possible situation // server gave us too small tcp window