From ad5588ebf1f418df6541ccb6cc1314e7d228ff71 Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 27 Mar 2022 10:15:28 +0300 Subject: [PATCH] nfqws: cosmetics --- nfq/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfq/protocol.c b/nfq/protocol.c index cedf15d..4f3fbc3 100644 --- a/nfq/protocol.c +++ b/nfq/protocol.c @@ -551,7 +551,7 @@ bool IsQUICInitial(const uint8_t *data, size_t len) if (offset >= len) return false; // payload length - if ((offset + tvb_get_size(data[offset])) >= len) return false; + if ((offset + tvb_get_size(data[offset])) > len) return false; tvb_get_varint(data + offset, &sz); offset += sz; if (offset > len) return false;