[NETFILTER]: Check policy length in policy match strict mode

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Patrick McHardy 2006-02-04 02:17:26 -08:00 committed by David S. Miller
parent ee4bb818ae
commit e55f1bc5dc
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ match_policy_out(const struct sk_buff *skb, const struct ipt_policy_info *info)
return 0;
}
return strict ? 1 : 0;
return strict ? i == info->len : 0;
}
static int match(const struct sk_buff *skb,

View file

@ -91,7 +91,7 @@ match_policy_out(const struct sk_buff *skb, const struct ip6t_policy_info *info)
return 0;
}
return strict ? 1 : 0;
return strict ? i == info->len : 0;
}
static int match(const struct sk_buff *skb,