From owner-cvs-src-old@FreeBSD.ORG Fri Sep 11 15:07:50 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A74F1065743 for ; Fri, 11 Sep 2009 15:07:50 +0000 (UTC) (envelope-from syrinx@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7933C8FC12 for ; Fri, 11 Sep 2009 15:07:50 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n8BF7oR1043736 for ; Fri, 11 Sep 2009 15:07:50 GMT (envelope-from syrinx@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n8BF7oZb043735 for cvs-src-old@freebsd.org; Fri, 11 Sep 2009 15:07:50 GMT (envelope-from syrinx@repoman.freebsd.org) Message-Id: <200909111507.n8BF7oZb043735@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to syrinx@repoman.freebsd.org using -f From: Shteryana Shopova Date: Fri, 11 Sep 2009 15:07:36 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/netinet in_mcast.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2009 15:07:50 -0000 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