From a4e13cb6e4107aebb22029f86f77e7bd64f0243b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Vejpustek?= Date: Fri, 26 Nov 2021 16:13:00 +0100 Subject: [PATCH] fix(crypto): assign NULL to zkp_context after is is destroyed --- crypto/zkp_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/zkp_context.c b/crypto/zkp_context.c index c2e760a4a..6416b7868 100644 --- a/crypto/zkp_context.c +++ b/crypto/zkp_context.c @@ -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() {