Skip to contentSkip to conversation

2.4.0 and 2.2.18 : Small bugfix for IP_ADD_MEMBERSHIP

PATCH In review Stefan Jonsson 2 participants 2 messages Jan 9, 2001 – Jan 10, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.4.0 and 2.2.18 : Small bugfix for IP_ADD_MEMBERSHIP

This small patch fixes a small bug in IP_ADD_MEMBERSHIP where im->loaded is used but not initialized when compiled without CONFIG_IP_MULTICAST.

ipv4/igmp.c renamed from ipv4/igmp.c.orig +1 -1
@@ -442,8 +442,8 @@
 	im->timer.function=&igmp_timer_expire;
 	im->unsolicit_count = IGMP_Unsolicited_Report_Count;
 	im->reporter = 0;
-	im->loaded = 0;
 #endif
+	im->loaded = 0;
 	im->next=in_dev->mc_list;
 	in_dev->mc_list=im;
 	igmp_group_added(im);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/