mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Clear decrypted ticket that failed checks in DoClientTicket_ex
This commit is contained in:
@ -34821,6 +34821,10 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
ret = DoClientTicketCheckVersion(ssl, psk->it);
|
||||
if (ret != 0) {
|
||||
psk->decryptRet = PSK_DECRYPT_FAIL;
|
||||
ForceZero(psk->identity, psk->identityLen);
|
||||
#ifdef WOLFSSL_CHECK_MEM_ZERO
|
||||
wc_MemZero_Check(psk->it, sizeof(InternalTicket));
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
return decryptRet;
|
||||
|
Reference in New Issue
Block a user