mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
proto: correct 802.1Q length check in is_ipv_X
This commit is contained in:
parent
2b8afc6c68
commit
e4f65fef03
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue