summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/gost/gost2814789t.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/gost/gost2814789t.c b/src/regress/lib/libcrypto/gost/gost2814789t.c
index eb60517f49..3e33f1e59b 100644
--- a/src/regress/lib/libcrypto/gost/gost2814789t.c
+++ b/src/regress/lib/libcrypto/gost/gost2814789t.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gost2814789t.c,v 1.6 2021/12/04 08:15:16 tb Exp $ */ 1/* $OpenBSD: gost2814789t.c,v 1.7 2022/02/08 17:59:39 tb Exp $ */
2/* vim: set fileencoding=ascii : Charset: ASCII */ 2/* vim: set fileencoding=ascii : Charset: ASCII */
3/* test/gostr2814789t.c */ 3/* test/gostr2814789t.c */
4/* ==================================================================== 4/* ====================================================================
@@ -1404,7 +1404,8 @@ engine_cipher_check:
1404 enlf = 0; 1404 enlf = 0;
1405 else 1405 else
1406 EVP_EncryptFinal_ex(ectx, bTest1, &enlf); 1406 EVP_EncryptFinal_ex(ectx, bTest1, &enlf);
1407 EVP_CIPHER_CTX_reset(ectx); 1407 EVP_CIPHER_CTX_free(ectx);
1408 ectx = NULL;
1408 break; 1409 break;
1409 case G89_IMIT: 1410 case G89_IMIT:
1410 if ((mctx = EVP_MD_CTX_new()) == NULL) 1411 if ((mctx = EVP_MD_CTX_new()) == NULL)
@@ -1435,7 +1436,8 @@ engine_cipher_check:
1435 } 1436 }
1436 siglen = 4; 1437 siglen = 4;
1437 OPENSSL_assert(EVP_DigestSignFinal(mctx, bTest, &siglen)); 1438 OPENSSL_assert(EVP_DigestSignFinal(mctx, bTest, &siglen));
1438 EVP_MD_CTX_reset(mctx); 1439 EVP_MD_CTX_free(mctx);
1440 mctx = NULL;
1439 EVP_PKEY_free(mac_key); 1441 EVP_PKEY_free(mac_key);
1440 enlu = (int)tcs[t].ullLen; 1442 enlu = (int)tcs[t].ullLen;
1441 enlf = 0; 1443 enlf = 0;