diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-02 23:52:23 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-02 23:52:23 (GMT) |
commit | 0bc0be7f20efea664b7c4c1d0b1822bc8f53a8b4 (patch) | |
tree | ead6485944f5c1db64c9f6b6dd7ef0f9e4842a67 /net/ipv4 | |
parent | 34a6ef381d402c6547aa9abb8a74b0262ae8255f (diff) | |
parent | 3db7e93d3308fb882884b9f024235d6fbf542034 (diff) | |
download | linux-0bc0be7f20efea664b7c4c1d0b1822bc8f53a8b4.tar.xz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/arpt_mangle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/arpt_mangle.c b/net/ipv4/netfilter/arpt_mangle.c index b8ddcc4..a5e52a9 100644 --- a/net/ipv4/netfilter/arpt_mangle.c +++ b/net/ipv4/netfilter/arpt_mangle.c @@ -60,12 +60,12 @@ static int checkentry(const struct xt_tgchk_param *par) if (mangle->flags & ~ARPT_MANGLE_MASK || !(mangle->flags & ARPT_MANGLE_MASK)) - return false; + return -EINVAL; if (mangle->target != NF_DROP && mangle->target != NF_ACCEPT && mangle->target != XT_CONTINUE) - return false; - return true; + return -EINVAL; + return 0; } static struct xt_target arpt_mangle_reg __read_mostly = { |