mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
netfilter: xtables: fix incorrect return code
Signed-off-by: Jan Engelhardt <[email protected]>
This commit is contained in:
parent
b5cad0dfd3
commit
c29c949288
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue