mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-11 15:49:56 +00:00
netfilter: nft_meta: fix iifgroup matching
iifgroup matching erroneously checks the output interface. Fixes: 8724e819cc9a ("netfilter: nft_meta: move all interface related keys to helper") Reported-by: Demi M. Obenour <demiobenour@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
ffe8923f10
commit
78470d9d0d
@ -253,7 +253,7 @@ static bool nft_meta_get_eval_ifname(enum nft_meta_keys key, u32 *dest,
|
||||
return false;
|
||||
break;
|
||||
case NFT_META_IIFGROUP:
|
||||
if (!nft_meta_store_ifgroup(dest, nft_out(pkt)))
|
||||
if (!nft_meta_store_ifgroup(dest, nft_in(pkt)))
|
||||
return false;
|
||||
break;
|
||||
case NFT_META_OIFGROUP:
|
||||
|
Loading…
x
Reference in New Issue
Block a user