summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2023-04-21 06:00:47 +0200
committerMatt Caswell <matt@openssl.org>2023-05-01 11:20:04 +0100
commit1009940c14716ac03d5f161bdb4ae626ec6fe729 (patch)
tree1eed083d52c41219562e89feebec0cc55c1a7bac
parentac52fe5f5ae7a1d062f09adab7744e3a3b2ddbcf (diff)
downloadopenssl-new-1009940c14716ac03d5f161bdb4ae626ec6fe729.tar.gz
param->ctrl translation: Fix evp_pkey_ctx_setget_params_to_ctrl()
Ensure that ctx.ctrl_cmd defaults to translation->cmd_num Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Todd Short <todd.short@me.com> (Merged from https://github.com/openssl/openssl/pull/20780)
-rw-r--r--crypto/evp/ctrl_params_translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c
index c0bd7a7449..9010fa6c46 100644
--- a/crypto/evp/ctrl_params_translate.c
+++ b/crypto/evp/ctrl_params_translate.c
@@ -2802,6 +2802,7 @@ static int evp_pkey_ctx_setget_params_to_ctrl(EVP_PKEY_CTX *pctx,
if (translation->fixup_args != NULL)
fixup = translation->fixup_args;
ctx.action_type = translation->action_type;
+ ctx.ctrl_cmd = translation->ctrl_num;
}
ctx.pctx = pctx;
ctx.params = params;