]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r196932:
authorsyrinx <syrinx@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 11 Sep 2009 15:07:36 +0000 (15:07 +0000)
committersyrinx <syrinx@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 11 Sep 2009 15:07:36 +0000 (15:07 +0000)
commit2d9024a879860798883558cc5f3b5168b72240b3
treec096a178c71f5b98c949f403aff15cba8005cadc
parentb20a8f5783cb17cb3e151de69c8c6f97b6c9cf81
MFC r196932:

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: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/8@197089 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/in_mcast.c