diff options
author | Richard Levitte <levitte@openssl.org> | 2020-11-10 10:28:16 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-11-13 09:35:31 +0100 |
commit | 105d01f1eb0e48ea24b430a0ac9636906a24cdbb (patch) | |
tree | eb76be8d7b16870b5205273c8fcb08399a7a87cf | |
parent | a150f8e1fcc38752fef4d7c75d765d8efc7d46d6 (diff) |
crypto/provider_core.c: fix a couple of faulty ERR_raise_data() calls
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13318)
-rw-r--r-- | crypto/provider_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/provider_core.c b/crypto/provider_core.c index 29d9cb7707..d919a95b40 100644 --- a/crypto/provider_core.c +++ b/crypto/provider_core.c @@ -284,7 +284,7 @@ OSSL_PROVIDER *ossl_provider_new(OSSL_LIB_CTX *libctx, const char *name, if ((prov = ossl_provider_find(libctx, name, noconfig)) != NULL) { /* refcount +1 */ ossl_provider_free(prov); /* refcount -1 */ - ERR_raise_data(ERR_LIB_CRYPTO, CRYPTO_R_PROVIDER_ALREADY_EXISTS, NULL, + ERR_raise_data(ERR_LIB_CRYPTO, CRYPTO_R_PROVIDER_ALREADY_EXISTS, "name=%s", name); return NULL; } @@ -534,7 +534,7 @@ static int provider_activate(OSSL_PROVIDER *prov) if (prov->init_function == NULL || !prov->init_function((OSSL_CORE_HANDLE *)prov, core_dispatch, &provider_dispatch, &tmp_provctx)) { - ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL, NULL, + ERR_raise_data(ERR_LIB_CRYPTO, ERR_R_INIT_FAIL, "name=%s", prov->name); #ifndef FIPS_MODULE DSO_free(prov->module); |