diff options
author | Florent Fourcot <florent.fourcot@wifirst.fr> | 2021-11-03 23:21:54 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-11-08 11:39:02 +0100 |
commit | ad81d4daf6a3f4769a346e635d5e1e967ca455d9 (patch) | |
tree | efb02a570940b058c43a8655b78420890c2be33c /net/netfilter | |
parent | selftests: nft_nat: Simplify port shadow notrack test (diff) | |
download | linux-ad81d4daf6a3f4769a346e635d5e1e967ca455d9.tar.xz linux-ad81d4daf6a3f4769a346e635d5e1e967ca455d9.zip |
netfilter: ctnetlink: fix filtering with CTA_TUPLE_REPLY
filter->orig_flags was used for a reply context.
Fixes: cb8aa9a3affb ("netfilter: ctnetlink: add kernel side filtering for dump")
Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index f1e5443fe7c7..2663764d0b6e 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c @@ -1011,7 +1011,7 @@ ctnetlink_alloc_filter(const struct nlattr * const cda[], u8 family) CTA_TUPLE_REPLY, filter->family, &filter->zone, - filter->orig_flags); + filter->reply_flags); if (err < 0) { err = -EINVAL; goto err_filter; |