mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-12 08:38:08 -04:00
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>
This commit is contained in:
parent
3b5e1d8f78
commit
0a2dd6d4eb
@ -4452,6 +4452,7 @@ static void ssl_remove_psk(mbedtls_ssl_context *ssl)
|
|||||||
ssl->handshake->psk_len);
|
ssl->handshake->psk_len);
|
||||||
mbedtls_free(ssl->handshake->psk);
|
mbedtls_free(ssl->handshake->psk);
|
||||||
ssl->handshake->psk_len = 0;
|
ssl->handshake->psk_len = 0;
|
||||||
|
ssl->handshake->psk = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user