From owner-svn-src-head@freebsd.org Sun May 15 22:35:12 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92F4CB3BAAD; Sun, 15 May 2016 22:35:12 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 603731527; Sun, 15 May 2016 22:35:12 +0000 (UTC) (envelope-from cy@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4FMZBxO014887; Sun, 15 May 2016 22:35:11 GMT (envelope-from cy@FreeBSD.org) Received: (from cy@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4FMZBLj014886; Sun, 15 May 2016 22:35:11 GMT (envelope-from cy@FreeBSD.org) Message-Id: <201605152235.u4FMZBLj014886@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: cy set sender to cy@FreeBSD.org using -f From: Cy Schubert Date: Sun, 15 May 2016 22:35:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r299870 - head/sys/contrib/ipfilter/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 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: Sun, 15 May 2016 22:35:12 -0000 Author: cy Date: Sun May 15 22:35:11 2016 New Revision: 299870 URL: https://svnweb.freebsd.org/changeset/base/299870 Log: Make subsequent code reachable. Reported by: Coverity CID 1354625 MFC after: 3 days Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c Modified: head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c ============================================================================== --- head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c Sun May 15 22:31:03 2016 (r299869) +++ head/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c Sun May 15 22:35:11 2016 (r299870) @@ -1165,17 +1165,20 @@ INLINE int ipf_checkv6sum(fin) fr_info_t *fin; { - if ((fin->fin_flx & FI_NOCKSUM) != 0) + if ((fin->fin_flx & FI_NOCKSUM) != 0) { DT(ipf_checkv6sum_fi_nocksum); return 0; + } - if ((fin->fin_flx & FI_SHORT) != 0) + if ((fin->fin_flx & FI_SHORT) != 0) { DT(ipf_checkv6sum_fi_short); return 1; + } - if (fin->fin_cksum != FI_CK_NEEDED) + if (fin->fin_cksum != FI_CK_NEEDED) { DT(ipf_checkv6sum_fi_ck_needed); return (fin->fin_cksum > FI_CK_NEEDED) ? 0 : -1; + } if (ipf_checkl4sum(fin) == -1) { fin->fin_flx |= FI_BAD;