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.
This commit is contained in:
John Safranek
2019-02-20 11:26:33 -08:00
parent f78ba4649b
commit a376e17aee

View File

@ -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;
}