Merge pull request #9241 from lhuang04/official_development_psk_null2

Set psk to NULL in ssl_psk_remove
This commit is contained in:
Tom Cosgrove 2024-06-12 12:00:34 +00:00 committed by GitHub
commit a0cfe01bb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2243,6 +2243,7 @@ static void ssl_remove_psk(mbedtls_ssl_context *ssl)
mbedtls_zeroize_and_free(ssl->handshake->psk,
ssl->handshake->psk_len);
ssl->handshake->psk_len = 0;
ssl->handshake->psk = NULL;
}
#endif /* MBEDTLS_USE_PSA_CRYPTO */
}