Mailing List Archive

[PATCH] random/jitterentropy: fix USE_JENT == JENT_USES_GETTIME code path
* random/jitterentropy-base-user.h (jent_get_nstime): Use 'tv' variable
instead of non-existing 'time'.
--

GnuPG-bug-id: 4966
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
---
random/jitterentropy-base-user.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/random/jitterentropy-base-user.h b/random/jitterentropy-base-user.h
index 75dd7681..8a8dbd55 100644
--- a/random/jitterentropy-base-user.h
+++ b/random/jitterentropy-base-user.h
@@ -86,9 +86,9 @@ jent_get_nstime(u64 *out)
* not rely on that extra little entropy. */
if (!clock_gettime (CLOCK_REALTIME, &tv))
{
- tmp = time.tv_sec;
+ tmp = tv.tv_sec;
tmp = tmp << 32;
- tmp = tmp | time.tv_nsec;
+ tmp = tmp | tv.tv_nsec;
}
else
tmp = 0;
--
2.25.1


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel