From 9498e8c9a9d8c8a00a5423832ac327c8afbaa859 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Sat, 13 Aug 2016 18:32:40 +0200 Subject: [PATCH] Fixed issue occurred after careless eap::tls_random::time elimination --- lib/TLS/src/TLS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TLS/src/TLS.cpp b/lib/TLS/src/TLS.cpp index c5fdbd2..aa0a022 100644 --- a/lib/TLS/src/TLS.cpp +++ b/lib/TLS/src/TLS.cpp @@ -63,7 +63,7 @@ void eap::tls_random::clear() void eap::tls_random::reset(_In_ HCRYPTPROV cp) { - _time32((__time32_t*)&time); + _time32((__time32_t*)data); if (!CryptGenRandom(cp, sizeof(data) - sizeof(__time32_t), data + sizeof(__time32_t))) throw win_runtime_error(__FUNCTION__ " Error creating randomness."); }