netfilter: arpt_mangle: fix return values of checkentry
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 1 Feb 2011 15:03:46 +0000 (16:03 +0100)
committerPatrick McHardy <kaber@trash.net>
Tue, 1 Feb 2011 15:03:46 +0000 (16:03 +0100)
commit9d0db8b6b1da9e3d4c696ef29449700c58d589db
treef3fcf8325e523810c1ec70437b291b5ac8b74bfa
parent08b5194b5d6485d12ebf24cf6ee389fc55691122
netfilter: arpt_mangle: fix return values of checkentry

In 135367b "netfilter: xtables: change xt_target.checkentry return type",
the type returned by checkentry was changed from boolean to int, but the
return values where not adjusted.

arptables: Input/output error

This broke arptables with the mangle target since it returns true
under success, which is interpreted by xtables as >0, thus
returning EIO.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
net/ipv4/netfilter/arpt_mangle.c