Skip to contentSkip to conversation

Use hotdrop jump mark.

PATCH In review Richard Weinberger 2 participants 2 messages Jan 18, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use hotdrop jump mark.

---
 net/netfilter/xt_connlimit.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
net/netfilter/xt_connlimit.c +1 -2
index 5c5b6b9..6f5a49d 100644
@@ -206,8 +206,7 @@ connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par)
 
 	if (connections < 0) {
 		/* kmalloc failed, drop it entirely */
-		par->hotdrop = true;
-		return false;
+		goto hotdrop;
 	}
 
 	return (connections > info->limit) ^ info->inverse;
Signature · 1 line
1.6.6.1
#1 lore raw

net/netfilter/xt_connlimit.c connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par) · line 212

Quoted 13 lines · Richard Weinberger

index 5c5b6b9..6f5a49d 100644

net/netfilter/xt_connlimit.c +1 -2
@@ -206,8 +206,7 @@ connlimit_mt(const struct sk_buff *skb, struct xt_action_param *par)
 
 	if (connections < 0) {
 		/* kmalloc failed, drop it entirely */
-		par->hotdrop = true;
-		return false;
+		goto hotdrop;
 	}
 
 	return (connections > info->limit) ^ info->inverse;

Taken, thanks.