mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
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:
@ -2387,7 +2387,7 @@ int wolfSSL_StartSecureRenegotiation(WOLFSSL* ssl, int resume)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!resume) {
|
if (!resume) {
|
||||||
XMEMSET(ssl->session.sessionID, 0, ID_LEN);
|
XMEMSET(ssl->session.sessionID, 0, sizeof(ssl->session.sessionID));
|
||||||
ssl->session.sessionIDSz = 0;
|
ssl->session.sessionIDSz = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user