Set psk to NULL in ssl_psk_remove-backport to 2.28
Summary:
Back port [PR 9241](https://github.com/Mbed-TLS/mbedtls/pull/9241) to
2.28 branch
Test Plan:
Reviewers:
Subscribers:
Tasks:
Tags:
Signed-off-by: lhuang04 <lhuang04@fb.com>
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index c667a29..6149434 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -4452,6 +4452,7 @@
ssl->handshake->psk_len);
mbedtls_free(ssl->handshake->psk);
ssl->handshake->psk_len = 0;
+ ssl->handshake->psk = NULL;
}
}