* lib/sha3-stream.c (sha3_xxx_stream): Add missing &'s since
sha3_free_ctx expects a pointer.
2025-09-06 Collin Funk <collin.funk1@gmail.com>
+ crypo/sha3: Fix typo from the previous commit.
+ * lib/sha3-stream.c (sha3_xxx_stream): Add missing &'s since
+ sha3_free_ctx expects a pointer.
+
crypto/sha3-buffer, crypto/sha3: Protect against double frees (regr. today).
* lib/sha3.c (sha3_free_ctx): Only free the EVP_MD_CTX if it is not
NULL, and set it to NULL after freeing.
if (! init_ctx (&ctx))
{
free (buffer);
- sha3_free_ctx (ctx);
+ sha3_free_ctx (&ctx);
return 1;
}
size_t sum;
return 1;
}
- sha3_free_ctx (ctx);
+ sha3_free_ctx (&ctx);
return 0;
}