From 2d4aacc4ade8296aadb035eca3a55c8e21042ed4 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Mon, 19 Dec 2022 15:04:14 +1100 Subject: [PATCH] Update scratch_impl.h patch file To mirror recent changes to the `scratch_impl.h` file update the patch file. --- secp256k1-sys/depend/scratch_impl.h.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secp256k1-sys/depend/scratch_impl.h.patch b/secp256k1-sys/depend/scratch_impl.h.patch index 0afb47b..c956a83 100644 --- a/secp256k1-sys/depend/scratch_impl.h.patch +++ b/secp256k1-sys/depend/scratch_impl.h.patch @@ -14,11 +14,11 @@ < < static void secp256k1_scratch_destroy(const secp256k1_callback* error_callback, secp256k1_scratch* scratch) { < if (scratch != NULL) { -< VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */ < if (secp256k1_memcmp_var(scratch->magic, "scratch", 8) != 0) { < secp256k1_callback_call(error_callback, "invalid scratch space"); < return; < } +< VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */ < memset(scratch->magic, 0, sizeof(scratch->magic)); < free(scratch); < }