diff options
-rw-r--r-- | crypto/core_fetch.c | 4 | ||||
-rw-r--r-- | include/internal/core.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/core_fetch.c b/crypto/core_fetch.c index d2d7766512..bfdd36d429 100644 --- a/crypto/core_fetch.c +++ b/crypto/core_fetch.c @@ -47,7 +47,7 @@ static int ossl_method_construct_this(OSSL_PROVIDER *provider, void *cbdata) if (!data->mcm->put(data->libctx, NULL, thismap->property_definition, method, data->mcm_data)) { - data->mcm->destruct(method); + data->mcm->destruct(method, data->mcm_data); continue; } } @@ -55,7 +55,7 @@ static int ossl_method_construct_this(OSSL_PROVIDER *provider, void *cbdata) if (!data->mcm->put(data->libctx, data->store, thismap->property_definition, method, data->mcm_data)) { - data->mcm->destruct(method); + data->mcm->destruct(method, data->mcm_data); continue; } } diff --git a/include/internal/core.h b/include/internal/core.h index 2f0df376d3..b395025ecc 100644 --- a/include/internal/core.h +++ b/include/internal/core.h @@ -41,7 +41,7 @@ typedef struct ossl_method_construct_method_st { void *(*construct)(const OSSL_DISPATCH *fns, OSSL_PROVIDER *prov, void *data); /* Destruct a method */ - void (*destruct)(void *method); + void (*destruct)(void *method, void *data); } OSSL_METHOD_CONSTRUCT_METHOD; void *ossl_method_construct(OPENSSL_CTX *ctx, int operation_id, |