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; _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"