提交 e55f1bc5 编写于 作者: P Patrick McHardy 提交者: David S. Miller

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

Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ee4bb818
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册