netfilter: xt_connlimit: use hotdrop jump mark
Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
This commit is contained in:
committed by
Jan Engelhardt
parent
ae9d67aff6
commit
1cc34c30be
@@ -204,11 +204,9 @@ connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par)
|
|||||||
&info->mask, par->family);
|
&info->mask, par->family);
|
||||||
spin_unlock_bh(&info->data->lock);
|
spin_unlock_bh(&info->data->lock);
|
||||||
|
|
||||||
if (connections < 0) {
|
if (connections < 0)
|
||||||
/* kmalloc failed, drop it entirely */
|
/* kmalloc failed, drop it entirely */
|
||||||
par->hotdrop = true;
|
goto hotdrop;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (connections > info->limit) ^ info->inverse;
|
return (connections > info->limit) ^ info->inverse;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user