]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/property/property.c
Prevent an infinite recursion when the query cache is flushed.
[thirdparty/openssl.git] / crypto / property / property.c
index a92968c9020c3d058a5d2a2209a7be0e91e50b13..cab2ab243eddb942855375d525b64f9d4153c046 100644 (file)
@@ -429,8 +429,8 @@ static void ossl_method_cache_flush_some(OSSL_METHOD_STORE *store)
     state.nelem = 0;
     if ((state.seed = OPENSSL_rdtsc()) == 0)
         state.seed = 1;
-    ossl_sa_ALGORITHM_doall_arg(store->algs, &impl_cache_flush_one_alg, &state);
     store->need_flush = 0;
+    ossl_sa_ALGORITHM_doall_arg(store->algs, &impl_cache_flush_one_alg, &state);
     store->nelem = state.nelem;
 }