summaryrefslogtreecommitdiffstats
path: root/crypto/core_fetch.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-03-13 11:12:00 +0100
committerRichard Levitte <levitte@openssl.org>2019-03-18 14:27:02 +0100
commit7bb19a0f950dd87607133d526e31a083f35921fd (patch)
tree5ccc97c0a355c194d95eecf8b5d920039cecf655 /crypto/core_fetch.c
parentf643deac417a3ccb27f77670bb2b136de49079d9 (diff)
Replumbing: pass callback data to the algo destructor too
All relevant OSSL_METHOD_CONSTRUCT_METHOD callbacks got the callback data passed to them, except 'destruct'. There's no reason why it shouldn't get that pointer passed, so we make a small adjustment. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8341)
Diffstat (limited to 'crypto/core_fetch.c')
-rw-r--r--crypto/core_fetch.c4
1 files changed, 2 insertions, 2 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;
}
}