Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfe29677 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by Patrick McHardy
Browse files

netfilter: ctnetlink: use EOPNOTSUPP instead of EINVAL if the conntrack has no helper



This patch changes the return value if the conntrack has no helper assigned.
Instead of EINVAL, which is reserved for malformed messages, it returns
EOPNOTSUPP.

Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 238ede81
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1652,7 +1652,7 @@ ctnetlink_create_expect(struct nlattr *cda[], u_int8_t u3)


	if (!help || !help->helper) {
	if (!help || !help->helper) {
		/* such conntrack hasn't got any helper, abort */
		/* such conntrack hasn't got any helper, abort */
		err = -EINVAL;
		err = -EOPNOTSUPP;
		goto out;
		goto out;
	}
	}