Commit 6e470e19 authored by Richard Levitte's avatar Richard Levitte
Browse files

Fix UI_get0_action_string()



It shouldn't try to return an action description for UIT_PROMPT type
UI strings.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2904)
parent 5469600e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -724,9 +724,9 @@ const char *UI_get0_output_string(UI_STRING *uis)
const char *UI_get0_action_string(UI_STRING *uis)
{
    switch (uis->type) {
    case UIT_PROMPT:
    case UIT_BOOLEAN:
        return uis->_.boolean_data.action_desc;
    case UIT_PROMPT:
    case UIT_NONE:
    case UIT_VERIFY:
    case UIT_INFO: