X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0b4e3aa066abc0728aacb4bbeb86f53f9737156e..765c9de3b4af7c2078d16a03812ae2c7c2b24938:/bsd/netinet/in_cksum.c?ds=sidebyside diff --git a/bsd/netinet/in_cksum.c b/bsd/netinet/in_cksum.c index c8a2d462f..9d349d7b5 100644 --- a/bsd/netinet/in_cksum.c +++ b/bsd/netinet/in_cksum.c @@ -189,9 +189,9 @@ in_cksum_skip(m, len, skip) mlen = m->m_len; w = mtod(m, u_short *); +skip_start: if (len < mlen) mlen = len; -skip_start: sum = xsum_assym(w, mlen, sum, starting_on_odd); len -= mlen; if (mlen & 0x1) @@ -374,9 +374,9 @@ in_cksum_skip(m, len, skip) } else { mlen = m->m_len; } - if (len < mlen) - mlen = len; skip_start: + if (len < mlen) + mlen = len; len -= mlen; /*