aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2006-02-04 05:17:26 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-02-05 02:51:26 -0500
commite55f1bc5dcb60a47764f6eabd1501d2cb98fb2c4 (patch)
treee1737c03ad3d4843601d2eeef99f46d9064abfe0 /net/ipv6
parentee4bb818ae35f68d1f848eae0a7b150a38eb4168 (diff)
[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/ipv6')
-rw-r--r--net/ipv6/netfilter/ip6t_policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/netfilter/ip6t_policy.c b/net/ipv6/netfilter/ip6t_policy.c
index afe1cc4c18a5..9f38cd0a6489 100644
--- a/net/ipv6/netfilter/ip6t_policy.c
+++ b/net/ipv6/netfilter/ip6t_policy.c
@@ -91,7 +91,7 @@ match_policy_out(const struct sk_buff *skb, const struct ip6t_policy_info *info)
91 return 0; 91 return 0;
92 } 92 }
93 93
94 return strict ? 1 : 0; 94 return strict ? i == info->len : 0;
95} 95}
96 96
97static int match(const struct sk_buff *skb, 97static int match(const struct sk_buff *skb,