secp-sys: update scratch_impl.patch for upstream changes

This commit is contained in:
Andrew Poelstra 2020-12-21 22:05:26 +00:00
parent a9049f8eb2
commit e5d9e088cf
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
< 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 (memcmp(scratch->magic, "scratch", 8) != 0) {
< if (secp256k1_memcmp_var(scratch->magic, "scratch", 8) != 0) {
< secp256k1_callback_call(error_callback, "invalid scratch space");
< return;
< }