We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 866c805 + c3747b9 commit 164aef6Copy full SHA for 164aef6
net/netfilter/nft_payload.c
@@ -62,7 +62,7 @@ nft_payload_copy_vlan(u32 *d, const struct sk_buff *skb, u8 offset, u8 len)
62
return false;
63
64
if (offset + len > VLAN_ETH_HLEN + vlan_hlen)
65
- ethlen -= offset + len - VLAN_ETH_HLEN + vlan_hlen;
+ ethlen -= offset + len - VLAN_ETH_HLEN - vlan_hlen;
66
67
memcpy(dst_u8, vlanh + offset - vlan_hlen, ethlen);
68
0 commit comments