提交 6e470e19 编写于 作者: R Richard Levitte

Fix UI_get0_action_string()

It shouldn't try to return an action description for UIT_PROMPT type
UI strings.
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2904)
上级 5469600e
...@@ -724,9 +724,9 @@ const char *UI_get0_output_string(UI_STRING *uis) ...@@ -724,9 +724,9 @@ const char *UI_get0_output_string(UI_STRING *uis)
const char *UI_get0_action_string(UI_STRING *uis) const char *UI_get0_action_string(UI_STRING *uis)
{ {
switch (uis->type) { switch (uis->type) {
case UIT_PROMPT:
case UIT_BOOLEAN: case UIT_BOOLEAN:
return uis->_.boolean_data.action_desc; return uis->_.boolean_data.action_desc;
case UIT_PROMPT:
case UIT_NONE: case UIT_NONE:
case UIT_VERIFY: case UIT_VERIFY:
case UIT_INFO: case UIT_INFO:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册