netfilter: ctnetlink: use EOPNOTSUPP instead of EINVAL if the conntrack has no helper
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 17 Nov 2008 14:55:48 +0000 (15:55 +0100)
committerPatrick McHardy <kaber@trash.net>
Mon, 17 Nov 2008 14:55:48 +0000 (15:55 +0100)
commitbfe2967735e0e0f650bf698a5683db2b6cf4cfd7
tree684c115dd4d1d820ad0a6764fcd2e51324f91d43
parent238ede8160443a32379fd8f9eb88d00456a09bb4
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>
net/netfilter/nf_conntrack_netlink.c