mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
netfilter: ctnetlink: do not erase error code with EINVAL
And be consistent in error management for both orig/reply filtering
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>
This commit is contained in:
parent
ad81d4daf6
commit
77522ff02f
1 changed files with 1 additions and 3 deletions
|
@ -1012,10 +1012,8 @@ ctnetlink_alloc_filter(const struct nlattr * const cda[], u8 family)
|
|||
filter->family,
|
||||
&filter->zone,
|
||||
filter->reply_flags);
|
||||
if (err < 0) {
|
||||
err = -EINVAL;
|
||||
if (err < 0)
|
||||
goto err_filter;
|
||||
}
|
||||
}
|
||||
|
||||
return filter;
|
||||
|
|
Loading…
Reference in a new issue