aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv4/netfilter/ipt_policy.c2
-rw-r--r--net/ipv6/netfilter/ip6t_policy.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/netfilter/ipt_policy.c b/net/ipv4/netfilter/ipt_policy.c
index 18ca8258a1c5..a48949a3a750 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)
89 return 0; 89 return 0;
90 } 90 }
91 91
92 return strict ? 1 : 0; 92 return strict ? i == info->len : 0;
93} 93}
94 94
95static int match(const struct sk_buff *skb, 95static int match(const struct sk_buff *skb,
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,