ITS#8020 fix 64bit hash finalizer

This commit is contained in:
Howard Chu 2015-01-07 17:48:49 +00:00
parent 9266a43d6c
commit fa255d0fed

View File

@ -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;