1
0
mirror of https://github.com/bol-van/zapret.git synced 2025-04-20 05:52:57 +03:00

nfqws: cosmetics

This commit is contained in:
bol-van 2022-03-27 10:15:28 +03:00
parent 1111845590
commit ad5588ebf1

@ -551,7 +551,7 @@ bool IsQUICInitial(const uint8_t *data, size_t len)
if (offset >= len) return false; if (offset >= len) return false;
// payload length // 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); tvb_get_varint(data + offset, &sz);
offset += sz; offset += sz;
if (offset > len) return false; if (offset > len) return false;