diff --git a/crypto/property/property.c b/crypto/property/property.c index abf2a5aab74aa60777a75ed2447fc709e1cf788f..767e44429b1a761aa12852a5e4133d57f1c6789e 100644 --- a/crypto/property/property.c +++ b/crypto/property/property.c @@ -488,9 +488,9 @@ void ossl_method_store_do_all(OSSL_METHOD_STORE *store, ALGORITHM *alg; if (store != NULL) { - - if (!ossl_property_read_lock(store)) + if (!ossl_property_read_lock(store)) { return; + } tmpalgs = sk_ALGORITHM_new_reserve(NULL, ossl_sa_ALGORITHM_num(store->algs)); @@ -505,8 +505,9 @@ void ossl_method_store_do_all(OSSL_METHOD_STORE *store, for (i = 0; i < numalgs; i++) { alg = sk_ALGORITHM_value(tmpalgs, i); numimps = sk_IMPLEMENTATION_num(alg->impls); - for (j = 0; j < numimps; j++) + for (j = 0; j < numimps; j++) { alg_do_one(alg, sk_IMPLEMENTATION_value(alg->impls, j), fn, fnarg); + } } sk_ALGORITHM_free(tmpalgs); }