From: Howard Chu Date: Wed, 7 Jan 2015 17:48:49 +0000 (+0000) Subject: ITS#8020 fix 64bit hash finalizer X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa255d0fedc6de6c592ba775a7eaf7ce9fa63e38;p=openldap ITS#8020 fix 64bit hash finalizer --- diff --git a/libraries/liblutil/hash.c b/libraries/liblutil/hash.c index 8a593526aa..8accf67775 100644 --- a/libraries/liblutil/hash.c +++ b/libraries/liblutil/hash.c @@ -127,7 +127,7 @@ lutil_HASH64Update( void lutil_HASH64Final( unsigned char *digest, lutil_HASH_CTX *ctx ) { - unsigned long long h = ctx->hash; + unsigned long long h = ctx->hash64; digest[0] = h & 0xffU; digest[1] = (h>>8) & 0xffU;