Skip to content

Commit

Permalink
param->ctrl translation: Fix evp_pkey_ctx_setget_params_to_ctrl()
Browse files Browse the repository at this point in the history
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 #20780)

(cherry picked from commit 1009940)
  • Loading branch information
levitte authored and mattcaswell committed May 1, 2023
1 parent d1b2c9b commit c04ad57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/evp/ctrl_params_translate.c
Expand Up @@ -2734,6 +2734,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;
Expand Down

0 comments on commit c04ad57

Please sign in to comment.