diff options
-rw-r--r-- | sys/netinet/sctp_crc32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_crc32.c b/sys/netinet/sctp_crc32.c index e84d7fd..f6fd98c 100644 --- a/sys/netinet/sctp_crc32.c +++ b/sys/netinet/sctp_crc32.c @@ -589,7 +589,7 @@ update_crc32(uint32_t crc32, if (length == 0) { return (crc32); } - offset = ((uint32_t) buffer - ((uint32_t) buffer & 0xfffffffc)); + offset = (uintptr_t) buffer & 3; return (sctp_crc32c_sb8_64_bit(crc32, buffer, length, offset)); } |