diff options
author | Patrick McHardy <kaber@trash.net> | 2006-02-04 02:17:26 -0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-02-04 23:51:26 -0800 |
commit | e55f1bc5dcb60a47764f6eabd1501d2cb98fb2c4 (patch) | |
tree | e1737c03ad3d4843601d2eeef99f46d9064abfe0 /net/ipv4 | |
parent | ee4bb818ae35f68d1f848eae0a7b150a38eb4168 (diff) | |
download | linux-3.10-e55f1bc5dcb60a47764f6eabd1501d2cb98fb2c4.tar.gz linux-3.10-e55f1bc5dcb60a47764f6eabd1501d2cb98fb2c4.tar.bz2 linux-3.10-e55f1bc5dcb60a47764f6eabd1501d2cb98fb2c4.zip |
[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>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/ipt_policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/netfilter/ipt_policy.c b/net/ipv4/netfilter/ipt_policy.c index 18ca8258a1c..a48949a3a75 100644 --- a/net/ipv4/netfilter/ipt_policy.c +++ b/net/ipv4/netfilter/ipt_policy.c @@ -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, |