Make subsequent code reachable.

Reported by:	Coverity CID 1354625
MFC after:	3 days
This commit is contained in:
cy 2016-05-15 22:35:11 +00:00
parent 1d8172e762
commit a9ad3f7b18

View File

@ -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;