aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-05-02 14:04:54 +0200
committerJan Engelhardt <jengelh@medozas.de>2010-05-02 14:04:54 +0200
commitc29c949288d343be0d5c4f3091bc87ac047e1a09 (patch)
treedd3a82756c388d264a120a841fa913da511c57aa /net/netfilter
parentb5cad0dfd3c80501330215b9a9ae31bcffbd7306 (diff)
downloadkernel_samsung_aries-c29c949288d343be0d5c4f3091bc87ac047e1a09.zip
kernel_samsung_aries-c29c949288d343be0d5c4f3091bc87ac047e1a09.tar.gz
kernel_samsung_aries-c29c949288d343be0d5c4f3091bc87ac047e1a09.tar.bz2
netfilter: xtables: fix incorrect return code
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/netfilter')
-rw-r--r--net/netfilter/xt_multiport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_multiport.c b/net/netfilter/xt_multiport.c
index 83b77ce..b21f904 100644
--- a/net/netfilter/xt_multiport.c
+++ b/net/netfilter/xt_multiport.c
@@ -117,7 +117,7 @@ static int multiport_mt_check(const struct xt_mtchk_param *par)
const struct xt_multiport_v1 *multiinfo = par->matchinfo;
return check(ip->proto, ip->invflags, multiinfo->flags,
- multiinfo->count);
+ multiinfo->count) ? 0 : -EINVAL;
}
static int multiport_mt6_check(const struct xt_mtchk_param *par)
@@ -126,7 +126,7 @@ static int multiport_mt6_check(const struct xt_mtchk_param *par)
const struct xt_multiport_v1 *multiinfo = par->matchinfo;
return check(ip->proto, ip->invflags, multiinfo->flags,
- multiinfo->count);
+ multiinfo->count) ? 0 : -EINVAL;
}
static struct xt_match multiport_mt_reg[] __read_mostly = {