]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
crypo/sha3: Fix typo from the previous commit.
authorCollin Funk <collin.funk1@gmail.com>
Sat, 6 Sep 2025 23:57:58 +0000 (16:57 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 6 Sep 2025 23:57:58 +0000 (16:57 -0700)
* lib/sha3-stream.c (sha3_xxx_stream): Add missing &'s since
sha3_free_ctx expects a pointer.

ChangeLog
lib/sha3-stream.c

index 49505aaaf9e04e105a19d263a8bc0ee74493d630..88a4016002ea33849e6d34e0c61d8728bedbfded 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 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.
index d071ea06f9abdda00df86888acf607535e368ef2..adf55457c458c4b8dfd6a9b186c9949abeeda1e8 100644 (file)
@@ -57,7 +57,7 @@ sha3_xxx_stream (FILE *stream, char const *alg, void *resblock,
   if (! init_ctx (&ctx))
     {
       free (buffer);
-      sha3_free_ctx (ctx);
+      sha3_free_ctx (&ctx);
       return 1;
     }
   size_t sum;
@@ -137,7 +137,7 @@ sha3_xxx_stream (FILE *stream, char const *alg, void *resblock,
       return 1;
     }
 
-  sha3_free_ctx (ctx);
+  sha3_free_ctx (&ctx);
   return 0;
 }