diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-11-18 21:18:29 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-11-18 21:18:29 +0000 |
commit | fa95961a9ed92300e576544af3be18477bcd304d (patch) | |
tree | a6d7ac91cac2d4931404c02de3307c037c07815c /regress/lib | |
parent | a05ed8447a6948235c2cad9fec3172cf0c99d992 (diff) |
evptest: no need to call EVP_MD_CTX_cleanup() before EVP_MD_CTX_free()
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libcrypto/evp/evptest.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/regress/lib/libcrypto/evp/evptest.c b/regress/lib/libcrypto/evp/evptest.c index bb9564377c5..e6108de9821 100644 --- a/regress/lib/libcrypto/evp/evptest.c +++ b/regress/lib/libcrypto/evp/evptest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evptest.c,v 1.10 2021/11/18 15:15:31 tb Exp $ */ +/* $OpenBSD: evptest.c,v 1.11 2021/11/18 21:18:28 tb Exp $ */ /* Written by Ben Laurie, 2001 */ /* * Copyright (c) 2001 The OpenSSL Project. All rights reserved. @@ -296,7 +296,8 @@ test_digest(const char *digest, const unsigned char *plaintext, int pn, ERR_print_errors_fp(stderr); exit(101); } - EVP_MD_CTX_cleanup(ctx); + EVP_MD_CTX_free(ctx); + ctx = NULL; if (mdn != cn) { fprintf(stderr, "Digest length mismatch, got %d expected %d\n",mdn,cn); @@ -312,8 +313,6 @@ test_digest(const char *digest, const unsigned char *plaintext, int pn, printf("\n"); - EVP_MD_CTX_free(ctx); - return 1; } |