Skip to content

Commit 77522ff

Browse files
ffourcotummakynes
authored andcommitted
netfilter: ctnetlink: do not erase error code with EINVAL
And be consistent in error management for both orig/reply filtering Fixes: cb8aa9a ("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>
1 parent ad81d4d commit 77522ff

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎net/netfilter/nf_conntrack_netlink.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,10 +1012,8 @@ ctnetlink_alloc_filter(const struct nlattr * const cda[], u8 family)
10121012
filter->family,
10131013
&filter->zone,
10141014
filter->reply_flags);
1015-
if (err < 0) {
1016-
err = -EINVAL;
1015+
if (err < 0)
10171016
goto err_filter;
1018-
}
10191017
}
10201018

10211019
return filter;

0 commit comments

Comments
 (0)