From owner-svn-src-all@FreeBSD.ORG Tue Dec 16 03:18:59 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 75DDB106564A; Tue, 16 Dec 2008 03:18:59 +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 61C888FC18; Tue, 16 Dec 2008 03:18:59 +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 mBG3Ixb4025211; Tue, 16 Dec 2008 03:18:59 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id mBG3Ixf4025210; Tue, 16 Dec 2008 03:18:59 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200812160318.mBG3Ixf4025210@svn.freebsd.org> From: Kip Macy Date: Tue, 16 Dec 2008 03:18:59 +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: r186164 - head/sys/netinet X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 03:18:59 -0000 Author: kmacy Date: Tue Dec 16 03:18:59 2008 New Revision: 186164 URL: http://svn.freebsd.org/changeset/base/186164 Log: check pointer against NULL add new line after declaration for style Modified: head/sys/netinet/raw_ip.c Modified: head/sys/netinet/raw_ip.c ============================================================================== --- head/sys/netinet/raw_ip.c Tue Dec 16 03:12:44 2008 (r186163) +++ head/sys/netinet/raw_ip.c Tue Dec 16 03:18:59 2008 (r186164) @@ -280,7 +280,7 @@ rip_input(struct mbuf *m, int off) if (!prison_check_ip4(inp->inp_cred, &ip->ip_dst)) continue; } - if (last) { + if (last != NULL) { struct mbuf *n; n = m_copy(m, 0, (int)M_COPYALL); @@ -310,7 +310,7 @@ rip_input(struct mbuf *m, int off) if (!prison_check_ip4(inp->inp_cred, &ip->ip_dst)) continue; } - if (last) { + if (last != NULL) { struct mbuf *n; n = m_copy(m, 0, (int)M_COPYALL); @@ -964,6 +964,7 @@ rip_pcblist(SYSCTL_HANDLER_ARGS) INP_RLOCK(inp); if (inp->inp_gencnt <= gencnt) { struct xinpcb xi; + bzero(&xi, sizeof(xi)); xi.xi_len = sizeof xi; /* XXX should avoid extra copy */