diff --git a/sys/powerpc/powerpc/in_cksum.c b/sys/powerpc/powerpc/in_cksum.c index 90f0d0295d7a..a05791fd5616 100644 --- a/sys/powerpc/powerpc/in_cksum.c +++ b/sys/powerpc/powerpc/in_cksum.c @@ -228,7 +228,7 @@ skip_start: if (len < mlen) mlen = len; - if (clen & 1) + if ((clen ^ (int) addr) & 1) sum += in_cksumdata(addr, mlen) << 8; else sum += in_cksumdata(addr, mlen);