Skip to content

Commit 7394c2d

Browse files
Peng Wuummakynes
authored andcommitted
netfilter: nft_inner: fix return value check in nft_inner_parse_l2l3()
In nft_inner_parse_l2l3(), the return value of skb_header_pointer() is 'veth' instead of 'eth' when case 'htons(ETH_P_8021Q)' and fix it. Fixes: 3a07327 ("netfilter: nft_inner: support for inner tunnel header matching") Signed-off-by: Peng Wu <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent 6639412 commit 7394c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nft_inner.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static int nft_inner_parse_l2l3(const struct nft_inner *priv,
7272
break;
7373
case htons(ETH_P_8021Q):
7474
veth = skb_header_pointer(pkt->skb, off, sizeof(_veth), &_veth);
75-
if (!eth)
75+
if (!veth)
7676
return -1;
7777

7878
outer_llproto = veth->h_vlan_encapsulated_proto;

0 commit comments

Comments
 (0)