Linux Netfilter development
 help / color / mirror / Atom feed
* [PATCH nf] netfilter: ctnetlink: fix filtering with CTA_TUPLE_REPLY
@ 2021-11-03 22:21 Florent Fourcot
  2021-11-03 22:21 ` [PATCH nf] netfilter: ctnetlink: do not erase error code with EINVAL Florent Fourcot
  2021-11-08 10:37 ` [PATCH nf] netfilter: ctnetlink: fix filtering with CTA_TUPLE_REPLY Pablo Neira Ayuso
  0 siblings, 2 replies; 4+ messages in thread
From: Florent Fourcot @ 2021-11-03 22:21 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Florent Fourcot

filter->orig_flags was used for a reply context.

Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Fixes: cb8aa9a3affb ("netfilter: ctnetlink: add kernel side filtering for dump")
---
 net/netfilter/nf_conntrack_netlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-08 10:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-03 22:21 [PATCH nf] netfilter: ctnetlink: fix filtering with CTA_TUPLE_REPLY Florent Fourcot
2021-11-03 22:21 ` [PATCH nf] netfilter: ctnetlink: do not erase error code with EINVAL Florent Fourcot
2021-11-08 10:37   ` Pablo Neira Ayuso
2021-11-08 10:37 ` [PATCH nf] netfilter: ctnetlink: fix filtering with CTA_TUPLE_REPLY Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox