public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.4.0 and 2.2.18 : Small bugfix for IP_ADD_MEMBERSHIP
@ 2001-01-09 15:55 Stefan Jonsson
  2001-01-10  9:47 ` David S. Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Jonsson @ 2001-01-09 15:55 UTC (permalink / raw)
  To: alan, torvalds; +Cc: linux-kernel

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.

--- net/ipv4/igmp.c.orig	Tue Jan  9 13:40:48 2001
+++ net/ipv4/igmp.c	Tue Jan  9 13:37:26 2001
@@ -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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.4.0 and 2.2.18 : Small bugfix for IP_ADD_MEMBERSHIP
  2001-01-09 15:55 [PATCH] 2.4.0 and 2.2.18 : Small bugfix for IP_ADD_MEMBERSHIP Stefan Jonsson
@ 2001-01-10  9:47 ` David S. Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David S. Miller @ 2001-01-10  9:47 UTC (permalink / raw)
  To: stefan.jonsson; +Cc: alan, torvalds, linux-kernel


Thanks for the fix.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-10 10:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-09 15:55 [PATCH] 2.4.0 and 2.2.18 : Small bugfix for IP_ADD_MEMBERSHIP Stefan Jonsson
2001-01-10  9:47 ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox