1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-17 21:22:10 +00:00

fix(crypto): assign NULL to zkp_context after is is destroyed

This commit is contained in:
Ondřej Vejpustek 2021-11-26 16:13:00 +01:00
parent f1ebe8f23e
commit a4e13cb6e4

View File

@ -84,6 +84,7 @@ void zkp_context_destroy() {
secp256k1_context_preallocated_destroy(context);
memzero(context_buffer, sizeof(context_buffer));
atomic_flag_clear(&locked);
context = NULL;
}
const secp256k1_context *zkp_context_get_read_only() {