diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-05-02 08:04:54 -0400 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-05-02 08:04:54 -0400 |
commit | c29c949288d343be0d5c4f3091bc87ac047e1a09 (patch) | |
tree | dd3a82756c388d264a120a841fa913da511c57aa | |
parent | b5cad0dfd3c80501330215b9a9ae31bcffbd7306 (diff) |
netfilter: xtables: fix incorrect return code
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r-- | net/netfilter/xt_multiport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netfilter/xt_multiport.c b/net/netfilter/xt_multiport.c index 83b77ceb264f..b21f90432247 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) | |||
117 | const struct xt_multiport_v1 *multiinfo = par->matchinfo; | 117 | const struct xt_multiport_v1 *multiinfo = par->matchinfo; |
118 | 118 | ||
119 | return check(ip->proto, ip->invflags, multiinfo->flags, | 119 | return check(ip->proto, ip->invflags, multiinfo->flags, |
120 | multiinfo->count); | 120 | multiinfo->count) ? 0 : -EINVAL; |
121 | } | 121 | } |
122 | 122 | ||
123 | static int multiport_mt6_check(const struct xt_mtchk_param *par) | 123 | 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) | |||
126 | const struct xt_multiport_v1 *multiinfo = par->matchinfo; | 126 | const struct xt_multiport_v1 *multiinfo = par->matchinfo; |
127 | 127 | ||
128 | return check(ip->proto, ip->invflags, multiinfo->flags, | 128 | return check(ip->proto, ip->invflags, multiinfo->flags, |
129 | multiinfo->count); | 129 | multiinfo->count) ? 0 : -EINVAL; |
130 | } | 130 | } |
131 | 131 | ||
132 | static struct xt_match multiport_mt_reg[] __read_mostly = { | 132 | static struct xt_match multiport_mt_reg[] __read_mostly = { |