Blob Blame History Raw
diff -rupN --no-dereference openssl-3.0.9/apps/speed.c openssl-3.0.9-new/apps/speed.c
--- openssl-3.0.9/apps/speed.c	2023-05-31 14:33:11.679115195 +0200
+++ openssl-3.0.9-new/apps/speed.c	2023-05-31 14:33:13.533114404 +0200
@@ -591,6 +591,9 @@ static int EVP_MAC_loop(int algindex, vo
     for (count = 0; COND(c[algindex][testnum]); count++) {
         size_t outl;
 
+        if (mctx == NULL)
+            return -1;
+
         if (!EVP_MAC_init(mctx, NULL, 0, NULL)
             || !EVP_MAC_update(mctx, buf, lengths[testnum])
             || !EVP_MAC_final(mctx, mac, &outl, sizeof(mac)))