From 1009940c14716ac03d5f161bdb4ae626ec6fe729 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 21 Apr 2023 06:00:47 +0200 Subject: 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 Reviewed-by: Todd Short (Merged from https://github.com/openssl/openssl/pull/20780) --- crypto/evp/ctrl_params_translate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/evp') 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; -- cgit v1.2.3