Skip to content

Commit

Permalink
netfilter: xtables: fix incorrect return code
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
  • Loading branch information
Jan Engelhardt committed May 2, 2010
1 parent b5cad0d commit c29c949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/netfilter/xt_multiport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 = {
Expand Down

0 comments on commit c29c949

Please sign in to comment.