Fixed typo in inner_evp_generic_fetch() error handling
authorOliver Roberts <oliver@futaura.co.uk>
Sat, 12 Mar 2022 14:39:01 +0000 (14:39 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 15 Mar 2022 11:58:37 +0000 (12:58 +0100)
Fixes #17876

CLA: trivial

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17877)

crypto/evp/evp_fetch.c

index ea32cd5dd2380a7823bd5e70b57f6f658dd56ca4..3066e0b0d4a8af54261ed4eb9261c8a97330d0d6 100644 (file)
@@ -349,7 +349,7 @@ inner_evp_generic_fetch(struct evp_method_data_st *methdata,
         ERR_raise_data(ERR_LIB_EVP, code,
                        "%s, Algorithm (%s : %d), Properties (%s)",
                        ossl_lib_ctx_get_descriptor(methdata->libctx),
-                       name = NULL ? "<null>" : name, name_id,
+                       name == NULL ? "<null>" : name, name_id,
                        properties == NULL ? "<null>" : properties);
     }