Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 May 2016 22:35:11 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299870 - head/sys/contrib/ipfilter/netinet
Message-ID:  <201605152235.u4FMZBLj014886@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605152235.u4FMZBLj014886>