Skip to content

Commit bb32920

Browse files
committed
secp-sys: update scratch_impl.patch for upstream changes
1 parent 867b920 commit bb32920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

secp256k1-sys/depend/scratch_impl.h.patch

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
< static void secp256k1_scratch_destroy(const secp256k1_callback* error_callback, secp256k1_scratch* scratch) {
1616
< if (scratch != NULL) {
1717
< VERIFY_CHECK(scratch->alloc_size == 0); /* all checkpoints should be applied */
18-
< if (memcmp(scratch->magic, "scratch", 8) != 0) {
18+
< if (secp256k1_memcmp_var(scratch->magic, "scratch", 8) != 0) {
1919
< secp256k1_callback_call(error_callback, "invalid scratch space");
2020
< return;
2121
< }

0 commit comments

Comments
 (0)