Commit 77522ff0 authored by Florent Fourcot's avatar Florent Fourcot Committed by Pablo Neira Ayuso
Browse files

netfilter: ctnetlink: do not erase error code with EINVAL



And be consistent in error management for both orig/reply filtering

Fixes: cb8aa9a3 ("netfilter: ctnetlink: add kernel side filtering for dump")
Signed-off-by: default avatarFlorent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent ad81d4da
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1012,11 +1012,9 @@ 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;