Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1cc34c30 authored by Richard Weinberger's avatar Richard Weinberger Committed by Jan Engelhardt
Browse files

netfilter: xt_connlimit: use hotdrop jump mark

parent ae9d67af
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;