1 |
diff -up openssl-3.0.0/apps/speed.c.beldmit openssl-3.0.0/apps/speed.c |
2 |
--- openssl-3.0.0/apps/speed.c.beldmit 2021-12-21 15:14:04.210431584 +0100 |
3 |
+++ openssl-3.0.0/apps/speed.c 2021-12-21 15:46:05.554085125 +0100 |
4 |
@@ -547,6 +547,9 @@ static int EVP_MAC_loop(int algindex, vo |
5 |
for (count = 0; COND(c[algindex][testnum]); count++) { |
6 |
size_t outl; |
7 |
|
8 |
+ if (mctx == NULL) |
9 |
+ return -1; |
10 |
+ |
11 |
if (!EVP_MAC_init(mctx, NULL, 0, NULL) |
12 |
|| !EVP_MAC_update(mctx, buf, lengths[testnum]) |
13 |
|| !EVP_MAC_final(mctx, mac, &outl, sizeof(mac))) |