mirror of https://gitee.com/openkylin/linux.git
netfilter: nft_meta: fix iifgroup matching
iifgroup matching erroneously checks the output interface.
Fixes: 8724e819cc
("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…
Reference in New Issue