From owner-svn-src-head@FreeBSD.ORG Thu Apr 23 17:41:54 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 83CBE1065670; Thu, 23 Apr 2009 17:41:54 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 726BB8FC1F; Thu, 23 Apr 2009 17:41:54 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n3NHfsjK095057; Thu, 23 Apr 2009 17:41:54 GMT (envelope-from bz@svn.freebsd.org) Received: (from bz@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3NHfsPx095056; Thu, 23 Apr 2009 17:41:54 GMT (envelope-from bz@svn.freebsd.org) Message-Id: <200904231741.n3NHfsPx095056@svn.freebsd.org> From: "Bjoern A. Zeeb" Date: Thu, 23 Apr 2009 17:41:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r191433 - head/sys/netinet6 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Apr 2009 17:41:54 -0000 Author: bz Date: Thu Apr 23 17:41:54 2009 New Revision: 191433 URL: http://svn.freebsd.org/changeset/base/191433 Log: Compare protosw pointer with NULL. MFC after: 1 month Modified: head/sys/netinet6/ip6_input.c Modified: head/sys/netinet6/ip6_input.c ============================================================================== --- head/sys/netinet6/ip6_input.c Thu Apr 23 17:36:08 2009 (r191432) +++ head/sys/netinet6/ip6_input.c Thu Apr 23 17:41:54 2009 (r191433) @@ -269,7 +269,7 @@ ip6_init(void) panic("sizeof(protosw) != sizeof(ip6protosw)"); #endif pr = (struct ip6protosw *)pffindproto(PF_INET6, IPPROTO_RAW, SOCK_RAW); - if (pr == 0) + if (pr == NULL) panic("ip6_init"); /* Initialize the entire ip6_protox[] array to IPPROTO_RAW. */