Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Sep 2009 15:07:36 +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:  <200909111507.n8BF7oZb043735@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
syrinx      2009-09-11 15:07:36 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    sys/netinet          in_mcast.c 
  Log:
  SVN rev 197089 on 2009-09-11 15:07:36Z by syrinx
  
  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)
  
  Revision  Changes    Path
  1.27.2.2  +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?200909111507.n8BF7oZb043735>