mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 20:38:10 +00:00
fix(crypto): assign NULL to zkp_context after is is destroyed
This commit is contained in:
parent
f1ebe8f23e
commit
a4e13cb6e4
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user