Skip to content

Commit

Permalink
Update scratch_impl.h patch file
Browse files Browse the repository at this point in the history
To mirror recent changes to the `scratch_impl.h` file update the patch
file.
  • Loading branch information
tcharding committed Dec 19, 2022
1 parent 2fccf8d commit 2d4aacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion secp256k1-sys/depend/scratch_impl.h.patch
Expand Up @@ -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);
< }
Expand Down

0 comments on commit 2d4aacc

Please sign in to comment.