mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-23 11:42:31 +00:00
Merge pull request #9241 from lhuang04/official_development_psk_null2
Set psk to NULL in ssl_psk_remove
This commit is contained in:
commit
a0cfe01bb7
@ -2243,6 +2243,7 @@ static void ssl_remove_psk(mbedtls_ssl_context *ssl)
|
|||||||
mbedtls_zeroize_and_free(ssl->handshake->psk,
|
mbedtls_zeroize_and_free(ssl->handshake->psk,
|
||||||
ssl->handshake->psk_len);
|
ssl->handshake->psk_len);
|
||||||
ssl->handshake->psk_len = 0;
|
ssl->handshake->psk_len = 0;
|
||||||
|
ssl->handshake->psk = NULL;
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
#endif /* MBEDTLS_USE_PSA_CRYPTO */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user