forked from luck/tmp_suning_uos_patched
netfilter: ctnetlink: fix filtering with CTA_TUPLE_REPLY
[ Upstream commit ad81d4daf6a3f4769a346e635d5e1e967ca455d9 ]
filter->orig_flags was used for a reply context.
Fixes: cb8aa9a3af
("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a8a917058f
commit
a3d829e5f3
|
@ -973,7 +973,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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user