From d4fe478df04073abf0657506b58ed3f67443fcaf Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Fri, 24 Apr 2020 16:20:27 +0100 Subject: [PATCH] Don't export ECX key data twice We had a redundant couple of lines where we exported key data twice. Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/11635) --- providers/implementations/keymgmt/ecx_kmgmt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/providers/implementations/keymgmt/ecx_kmgmt.c b/providers/implementations/keymgmt/ecx_kmgmt.c index 278e548832..d3be2865b9 100644 --- a/providers/implementations/keymgmt/ecx_kmgmt.c +++ b/providers/implementations/keymgmt/ecx_kmgmt.c @@ -161,10 +161,6 @@ static int ecx_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, && !key_to_params(key, tmpl, NULL)) goto err; - if ((selection & OSSL_KEYMGMT_SELECT_KEYPAIR) != 0 - && !key_to_params(key, tmpl, NULL)) - goto err; - params = OSSL_PARAM_BLD_to_param(tmpl); if (params == NULL) goto err; -- 2.25.1