diff options
Diffstat (limited to 'src/lib/libcrypto/evp/digest.c')
-rw-r--r-- | src/lib/libcrypto/evp/digest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/digest.c b/src/lib/libcrypto/evp/digest.c index 1fa25cd4fb..7c129f025d 100644 --- a/src/lib/libcrypto/evp/digest.c +++ b/src/lib/libcrypto/evp/digest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: digest.c,v 1.35 2022/11/26 16:08:52 tb Exp $ */ | 1 | /* $OpenBSD: digest.c,v 1.36 2022/12/26 07:18:52 jmc Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -140,7 +140,7 @@ EVP_DigestInit_ex(EVP_MD_CTX *ctx, const EVP_MD *type, ENGINE *impl) | |||
140 | /* Whether it's nice or not, "Inits" can be used on "Final"'d contexts | 140 | /* Whether it's nice or not, "Inits" can be used on "Final"'d contexts |
141 | * so this context may already have an ENGINE! Try to avoid releasing | 141 | * so this context may already have an ENGINE! Try to avoid releasing |
142 | * the previous handle, re-querying for an ENGINE, and having a | 142 | * the previous handle, re-querying for an ENGINE, and having a |
143 | * reinitialisation, when it may all be unecessary. */ | 143 | * reinitialisation, when it may all be unnecessary. */ |
144 | if (ctx->engine && ctx->digest && (!type || | 144 | if (ctx->engine && ctx->digest && (!type || |
145 | (type && (type->type == ctx->digest->type)))) | 145 | (type && (type->type == ctx->digest->type)))) |
146 | goto skip_to_init; | 146 | goto skip_to_init; |