patch-2.4.27 linux-2.4.27/net/ipv4/ip_sockglue.c

Next file: linux-2.4.27/net/ipv4/ipip.c
Previous file: linux-2.4.27/net/ipv4/ip_input.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/net/ipv4/ip_sockglue.c linux-2.4.27/net/ipv4/ip_sockglue.c
@@ -750,6 +750,7 @@
 				err = ip_mc_join_group(sk, &mreq);
 				if (err)
 					break;
+				greqs.gsr_interface = mreq.imr_ifindex;
 				omode = MCAST_INCLUDE;
 				add = 1;
 			} else /* MCAST_LEAVE_SOURCE_GROUP */ {
@@ -791,7 +792,7 @@
 				goto mc_msf_out;
 			}
 			if (GROUP_FILTER_SIZE(gsf->gf_numsrc) > optlen) {
-				err = EINVAL;
+				err = -EINVAL;
 				goto mc_msf_out;
 			}
 			msize = IP_MSFILTER_SIZE(gsf->gf_numsrc);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)