diff options
author | phk <phk@FreeBSD.org> | 2003-05-05 07:22:35 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-05 07:22:35 +0000 |
commit | d8ee9fd2c6ee6d4b696b2cfb33399ff327f07443 (patch) | |
tree | 838fd36ad715730e3c5280233ee2d62d4ceaaf00 | |
parent | 9f0560bebcab5e281e1eca2611bed1cd57bb1740 (diff) | |
download | FreeBSD-src-d8ee9fd2c6ee6d4b696b2cfb33399ff327f07443.zip FreeBSD-src-d8ee9fd2c6ee6d4b696b2cfb33399ff327f07443.tar.gz |
Use le32dec() instead of le32toh() because we are not guaranteed to have
a word aligned input.
-rw-r--r-- | sys/kern/md5c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/md5c.c b/sys/kern/md5c.c index 94b4a26..af5471c 100644 --- a/sys/kern/md5c.c +++ b/sys/kern/md5c.c @@ -78,7 +78,7 @@ Decode (u_int32_t *output, const unsigned char *input, unsigned int len) const u_int32_t *ip = (const u_int32_t *)input; for (i = 0; i < len / 4; i++) - output[i] = le32toh(ip[i]); + output[i] = le32dec(&ip[i]); } #endif |