Clean up the encoder/decoder/loader stores before providers
[openssl.git] / crypto / store / store_meth.c
index 7b2f537d49914fcf1eeafce0701a97059d6c73b8..720b70c0e0ac2d0b63c9e1bdd791132113bf2325 100644 (file)
@@ -81,7 +81,8 @@ static void *loader_store_new(OSSL_LIB_CTX *ctx)
 
 
 static const OSSL_LIB_CTX_METHOD loader_store_method = {
-    OSSL_LIB_CTX_METHOD_DEFAULT_PRIORITY,
+    /* We want loader_store to be cleaned up before the provider store */
+    OSSL_LIB_CTX_METHOD_PRIORITY_2,
     loader_store_new,
     loader_store_free,
 };