From 7a87ce54cad2082291f46d2565b6bb4c3f8ae6e6 Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 6 Mar 2015 11:33:06 -0800 Subject: [PATCH] fix hash size mismatch on HashSession() --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 3e3562977..ed2f6d855 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -5559,7 +5559,7 @@ int wolfSSL_Cleanup(void) /* some session IDs aren't random afterall, let's make them random */ static INLINE word32 HashSession(const byte* sessionID, word32 len, int* error) { - byte digest[MD5_DIGEST_SIZE]; + byte digest[MAX_DIGEST_SIZE]; #ifndef NO_MD5 *error = wc_Md5Hash(sessionID, len, digest);