diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-11-17 14:55:48 (GMT) |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2008-11-17 14:55:48 (GMT) |
commit | bfe2967735e0e0f650bf698a5683db2b6cf4cfd7 (patch) | |
tree | 684c115dd4d1d820ad0a6764fcd2e51324f91d43 | |
parent | 238ede8160443a32379fd8f9eb88d00456a09bb4 (diff) | |
download | linux-fsl-qoriq-bfe2967735e0e0f650bf698a5683db2b6cf4cfd7.tar.xz |
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>
-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 80a3f13..d87a939 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) if (!help || !help->helper) { /* such conntrack hasn't got any helper, abort */ - err = -EINVAL; + err = -EOPNOTSUPP; goto out; } |