aboutsummaryrefslogtreecommitdiff
path: root/crypto/core_algorithm.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/core_algorithm.c')
-rw-r--r--crypto/core_algorithm.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/core_algorithm.c b/crypto/core_algorithm.c
index b035ecf..f4a20cb 100644
--- a/crypto/core_algorithm.c
+++ b/crypto/core_algorithm.c
@@ -58,13 +58,12 @@ static int algorithm_do_this(OSSL_PROVIDER *provider, void *cbdata)
map = ossl_provider_query_operation(provider, cur_operation,
&no_store);
- if (map == NULL)
- continue;
-
- while (map->algorithm_names != NULL) {
- const OSSL_ALGORITHM *thismap = map++;
+ if (map != NULL) {
+ while (map->algorithm_names != NULL) {
+ const OSSL_ALGORITHM *thismap = map++;
- data->fn(provider, thismap, no_store, data->data);
+ data->fn(provider, thismap, no_store, data->data);
+ }
}
/* Do we fulfill post-conditions? */