Date: Mon, 7 Sep 2009 16:00:33 +0000 (UTC) From: Shteryana Shopova <syrinx@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/netinet in_mcast.c Message-ID: <200909071600.n87G0snP076569@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
syrinx 2009-09-07 16:00:33 UTC
FreeBSD src repository
Modified files:
sys/netinet in_mcast.c
Log:
SVN rev 196932 on 2009-09-07 16:00:33Z by syrinx
When joining a multicast group, the inp_lookup_mcast_ifp call
does a KASSERT that the group address is multicast, so the
check if this is indeed true and eventually return a EINVAL if not,
should be done before calling inp_lookup_mcast_ifp. This fixes a kernel
crash when calling setsockopt (sock, IPPROTO_IP, IP_ADD_MEMBERSHIP,...)
with invalid group address.
Reviewed by: bms
Approved by: bms
MFC after: 3 days
Revision Changes Path
1.28 +6 -3 src/sys/netinet/in_mcast.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909071600.n87G0snP076569>
