diff options
author | ndossche <niels.dossche@ugent.be> | 2023-03-07 13:27:15 +0100 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-03-15 08:33:41 +1100 |
commit | c09c202e9bc66f0300ee598ca94f2b3fa5a5899d (patch) | |
tree | 78192d960d159cc6203c11c14b498cf8b2cb9409 /crypto | |
parent | 1caa4835eb140682ba091bf328758fc6535e70bc (diff) |
Add missing assignment to EVP_get_digestbynid()
The assignment of the result of EVP_get_digestbynid() did not happen
which made the fallback not actually perform the fallback.
CLA: trivial
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20447)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/evp/evp_pbe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp_pbe.c b/crypto/evp/evp_pbe.c index 5208f7cef8..d943dfeadd 100644 --- a/crypto/evp/evp_pbe.c +++ b/crypto/evp/evp_pbe.c @@ -143,7 +143,7 @@ int EVP_PBE_CipherInit_ex(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, md = md_fetch = EVP_MD_fetch(libctx, OBJ_nid2sn(md_nid), propq); /* Fallback to legacy method */ if (md == NULL) - EVP_get_digestbynid(md_nid); + md = EVP_get_digestbynid(md_nid); if (md == NULL) { (void)ERR_clear_last_mark(); |