patch-1.3.81 linux/net/ipv4/igmp.c

Next file: linux/net/ipv4/ip_forward.c
Previous file: linux/net/ipv4/arp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.80/linux/net/ipv4/igmp.c linux/net/ipv4/igmp.c
@@ -517,15 +517,14 @@
 	{
 		if((*i)->multiaddr==addr)
 		{
-			if(--((*i)->users))
-				return;
-			else
+			if(--((*i)->users) == 0)
 			{
 				struct ip_mc_list *tmp= *i;
 				igmp_group_dropped(tmp);
 				*i=(*i)->next;
 				kfree_s(tmp,sizeof(*tmp));
 			}
+			return;
 		}
 	}
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this