]> git.sur5r.net Git - openldap/commitdiff
ITS#8020 fix 64bit hash finalizer
authorHoward Chu <hyc@openldap.org>
Wed, 7 Jan 2015 17:48:49 +0000 (17:48 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 7 Jan 2015 17:48:49 +0000 (17:48 +0000)
libraries/liblutil/hash.c

index 8a593526aa8695501ef40b96657dd7e18162fc97..8accf677754a446240a75055b2a27a0c2ad5995a 100644 (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;