projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Don't report success from ec_export if OSSL_PARAM_BLD_to_param failed
[openssl.git]
/
providers
/
implementations
/
keymgmt
/
ec_kmgmt.c
diff --git
a/providers/implementations/keymgmt/ec_kmgmt.c
b/providers/implementations/keymgmt/ec_kmgmt.c
index e120760e5f97d1f9dc9d02897f6e48d3e66737af..6f8638a89812898131a002b5a6fef3dd83f6189b 100644
(file)
--- a/
providers/implementations/keymgmt/ec_kmgmt.c
+++ b/
providers/implementations/keymgmt/ec_kmgmt.c
@@
-498,6
+498,8
@@
int ec_export(void *keydata, int selection, OSSL_CALLBACK *param_cb,
if (ok && (params = OSSL_PARAM_BLD_to_param(tmpl)) != NULL)
ok = param_cb(params, cbarg);
+ else
+ ok = 0;
end:
OSSL_PARAM_free(params);
OSSL_PARAM_BLD_free(tmpl);