Skip to contentSkip to conversation

ROUTE target missing targetsize initialization

PATCH Applied Phil Oester 2 participants 2 messages Jul 21, 2006 – Jul 22, 2006

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

PATCH 1/1 ROUTE target missing targetsize initialization

Targetsize field needs to be initialized.

Closes bug #490.

Phil

net/ipv4/netfilter/ipt_ROUTE.c +1 -0
@@ -436,6 +436,7 @@
 static struct ipt_target ipt_route_reg = { 
 	.name = "ROUTE",
 	.target = ipt_route_target,
+	.targetsize = sizeof(struct ipt_route_target_info),
 	.checkentry = ipt_route_checkentry,
 	.me = THIS_MODULE,
 };
net/ipv6/netfilter/ip6t_ROUTE.c +1 -0
@@ -283,6 +283,7 @@
 static struct ip6t_target ip6t_route_reg = {
 	.name       = "ROUTE",
 	.target     = ip6t_route_target,
+	.targetsize = sizeof(struct ip6t_route_target_info),
 	.checkentry = ip6t_route_checkentry,
 	.me         = THIS_MODULE
 };
#1 lore raw
Quoted 3 lines · Phil Oester

Targetsize field needs to be initialized.

Closes bug #490.

Applied, thanks.