From fb962df18803f3a53c07212f59f489daf1e8e8bb Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 28 Dec 2025 17:12:18 +0300 Subject: [PATCH] nfqws2: detect incoming quic_initial (w/o decryption) --- nfq2/protocol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nfq2/protocol.c b/nfq2/protocol.c index 46e1d44..2621dc7 100644 --- a/nfq2/protocol.c +++ b/nfq2/protocol.c @@ -1330,8 +1330,8 @@ bool IsQUICInitial(const uint8_t *data, size_t len) uint64_t offset=5, sz; - // DCID. must be present - if (!data[offset] || data[offset] > QUIC_MAX_CID_LENGTH) return false; + // DCID + if (data[offset] > QUIC_MAX_CID_LENGTH) return false; offset += 1 + data[offset]; // SCID