提交 1cc34c30 编写于 作者: R Richard Weinberger 提交者: Jan Engelhardt

netfilter: xt_connlimit: use hotdrop jump mark

Signed-off-by: NRichard Weinberger <richard@nod.at>
Signed-off-by: NJan Engelhardt <jengelh@medozas.de>
上级 ae9d67af
......@@ -204,11 +204,9 @@ connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par)
&info->mask, par->family);
spin_unlock_bh(&info->data->lock);
if (connections < 0) {
if (connections < 0)
/* kmalloc failed, drop it entirely */
par->hotdrop = true;
return false;
}
goto hotdrop;
return (connections > info->limit) ^ info->inverse;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册