From 08a1c9f2e6e28a81936e51019b89e842a1a90b31 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 26 Jun 2020 20:40:11 +0100 Subject: Fix OSSL_PROVIDER_get_capabilities() It is not a failure to call OSSL_PROVIDER_get_capabilities() with a provider loaded that has no capabilities. Fixes #12286 Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/12292) --- crypto/provider_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/provider_core.c') diff --git a/crypto/provider_core.c b/crypto/provider_core.c index a2350bb88e..f68fd8f0f9 100644 --- a/crypto/provider_core.c +++ b/crypto/provider_core.c @@ -831,7 +831,7 @@ int ossl_provider_get_capabilities(const OSSL_PROVIDER *prov, void *arg) { return prov->get_capabilities == NULL - ? 0 : prov->get_capabilities(prov->provctx, capability, cb, arg); + ? 1 : prov->get_capabilities(prov->provctx, capability, cb, arg); } -- cgit v1.2.3