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

pull/1958/head
Ondřej Vejpustek 2 years ago
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…
Cancel
Save