From: Richard Levitte Date: Fri, 21 Apr 2023 04:00:47 +0000 (+0200) Subject: param->ctrl translation: Fix evp_pkey_ctx_setget_params_to_ctrl() X-Git-Tag: openssl-3.2.0-alpha1~924 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1009940c14716ac03d5f161bdb4ae626ec6fe729;p=thirdparty%2Fopenssl.git 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) --- diff --git a/crypto/evp/ctrl_params_translate.c b/crypto/evp/ctrl_params_translate.c index c0bd7a74490..9010fa6c463 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;