commit | a0cfe01bb7598c91e29f978ba357540d51221ca7 | [log] [tgz] |
---|---|---|
author | Tom Cosgrove <tom.cosgrove@arm.com> | Wed Jun 12 12:00:34 2024 +0000 |
committer | GitHub <noreply@github.com> | Wed Jun 12 12:00:34 2024 +0000 |
tree | fffc7415f07e185ee17ee8c7c2175cd5f8fa0d17 | |
parent | 797991dd517141d0c0e45fc40bd481f89f330184 [diff] | |
parent | 54adeab8661d8a3064505dfca33b971e761222e4 [diff] |
Merge pull request #9241 from lhuang04/official_development_psk_null2 Set psk to NULL in ssl_psk_remove
diff --git a/library/ssl_tls.c b/library/ssl_tls.c index c2c2b6f..dd39e81 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c
@@ -2243,6 +2243,7 @@ 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 */ }