Fixes #24698
Some applicable translations are bidirectional so they have
NONE action_type. However we need to set the real action_type
in the ctx.
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/24709)
(cherry picked from commit
55c1458303c0fef88e4b2b35a090e9145f3e07eb)
fixup_args_fn *fixup = default_fixup_args;
int ret;
- tmpl.action_type = action_type;
+ ctx.action_type = tmpl.action_type = action_type;
tmpl.keytype1 = tmpl.keytype2 = keytype;
tmpl.optype = optype;
tmpl.param_key = params->key;
if (translation != NULL) {
if (translation->fixup_args != NULL)
fixup = translation->fixup_args;
- ctx.action_type = translation->action_type;
ctx.ctrl_cmd = translation->ctrl_num;
}
ctx.pctx = pctx;