From owner-svn-src-head@FreeBSD.ORG Tue Dec 16 06:01:08 2008 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 909731065675; Tue, 16 Dec 2008 06:01:08 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7BC698FC20; Tue, 16 Dec 2008 06:01:08 +0000 (UTC) (envelope-from kmacy@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 mBG618CQ028383; Tue, 16 Dec 2008 06:01:08 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBG618xk028382; Tue, 16 Dec 2008 06:01:08 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200812160601.mBG618xk028382@svn.freebsd.org> From: Kip Macy Date: Tue, 16 Dec 2008 06:01:08 +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: r186170 - 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: Tue, 16 Dec 2008 06:01:08 -0000 Author: kmacy Date: Tue Dec 16 06:01:08 2008 New Revision: 186170 URL: http://svn.freebsd.org/changeset/base/186170 Log: check pointers against NULL Modified: head/sys/netinet6/raw_ip6.c Modified: head/sys/netinet6/raw_ip6.c ============================================================================== --- head/sys/netinet6/raw_ip6.c Tue Dec 16 05:03:22 2008 (r186169) +++ head/sys/netinet6/raw_ip6.c Tue Dec 16 06:01:08 2008 (r186170) @@ -232,7 +232,7 @@ rip6_input(struct mbuf **mp, int *offp, /* * Check AH/ESP integrity. */ - if (last && ipsec6_in_reject(m, last)) { + if ((last != NULL) && ipsec6_in_reject(m, last)) { m_freem(m); V_ipsec6stat.in_polvio++; V_ip6stat.ip6s_delivered--; @@ -357,7 +357,7 @@ rip6_output(m, va_alist) INP_WLOCK(in6p); dst = &dstsock->sin6_addr; - if (control) { + if (control != NULL) { if ((error = ip6_setpktopts(control, &opt, in6p->in6p_outputopts, so->so_cred, so->so_proto->pr_protocol)) != 0) { @@ -491,7 +491,7 @@ rip6_output(m, va_alist) m_freem(m); freectl: - if (control) { + if (control != NULL) { ip6_clearpktopts(&opt, -1); m_freem(control); }