diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-17 09:55:48 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-17 09:55:48 -0500 |
commit | bfe2967735e0e0f650bf698a5683db2b6cf4cfd7 (patch) | |
tree | 684c115dd4d1d820ad0a6764fcd2e51324f91d43 /net | |
parent | 238ede8160443a32379fd8f9eb88d00456a09bb4 (diff) |
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: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index 80a3f1308152..d87a9398a781 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c | |||
@@ -1652,7 +1652,7 @@ ctnetlink_create_expect(struct nlattr *cda[], u_int8_t u3) | |||
1652 | 1652 | ||
1653 | if (!help || !help->helper) { | 1653 | if (!help || !help->helper) { |
1654 | /* such conntrack hasn't got any helper, abort */ | 1654 | /* such conntrack hasn't got any helper, abort */ |
1655 | err = -EINVAL; | 1655 | err = -EOPNOTSUPP; |
1656 | goto out; | 1656 | goto out; |
1657 | } | 1657 | } |
1658 | 1658 | ||