mirror of https://github.com/wolfSSL/wolfssl.git
sanity check on buffer before clearing it
parent
205088d1bc
commit
d122b9f8b5
|
@ -20019,7 +20019,9 @@ exit_scke:
|
|||
#endif
|
||||
|
||||
/* No further need for PMS */
|
||||
if (ssl->arrays->preMasterSecret != NULL) {
|
||||
ForceZero(ssl->arrays->preMasterSecret, ssl->arrays->preMasterSz);
|
||||
}
|
||||
ssl->arrays->preMasterSz = 0;
|
||||
|
||||
/* Final cleanup */
|
||||
|
@ -25264,7 +25266,9 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||
#endif /* WOLFSSL_ASYNC_CRYPT */
|
||||
|
||||
/* Cleanup PMS */
|
||||
if (ssl->arrays->preMasterSecret != NULL) {
|
||||
ForceZero(ssl->arrays->preMasterSecret, ssl->arrays->preMasterSz);
|
||||
}
|
||||
ssl->arrays->preMasterSz = 0;
|
||||
|
||||
/* Final cleanup */
|
||||
|
|
Loading…
Reference in New Issue