From e4f65fef035d225c2c0b4002c02deedfbfa18028 Mon Sep 17 00:00:00 2001 From: rootvector2 Date: Thu, 28 May 2026 00:00:20 +0530 Subject: [PATCH] proto: correct 802.1Q length check in is_ipv_X --- src/openvpn/proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openvpn/proto.c b/src/openvpn/proto.c index 13fe0a54..785c021f 100644 --- a/src/openvpn/proto.c +++ b/src/openvpn/proto.c @@ -70,7 +70,7 @@ is_ipv_X(int tunnel_type, struct buffer *buf, int ip_ver) if (proto == htons(OPENVPN_ETH_P_8021Q)) { const struct openvpn_8021qhdr *evh; - if (BLENZ(buf) < sizeof(struct openvpn_ethhdr) + sizeof(struct openvpn_iphdr)) + if (BLENZ(buf) < sizeof(struct openvpn_8021qhdr) + sizeof(struct openvpn_iphdr)) { return false; }