From a376e17aee758d3b28d6bb0d65fa2fd66b746bca Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 20 Feb 2019 11:26:33 -0800 Subject: [PATCH] Switch the bound for the XMEMSET of the sessionID when starting a renegotiation to use sizeof the sessionID rather than the constat used to set the size of the array. --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 175e3460a..9dd044898 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -2387,7 +2387,7 @@ int wolfSSL_StartSecureRenegotiation(WOLFSSL* ssl, int resume) #endif if (!resume) { - XMEMSET(ssl->session.sessionID, 0, ID_LEN); + XMEMSET(ssl->session.sessionID, 0, sizeof(ssl->session.sessionID)); ssl->session.sessionIDSz = 0; }