Fix UI_get0_action_string()
authorRichard Levitte <levitte@openssl.org>
Fri, 10 Mar 2017 23:54:52 +0000 (00:54 +0100)
committerRichard Levitte <levitte@openssl.org>
Sat, 11 Mar 2017 00:26:48 +0000 (01:26 +0100)
It shouldn't try to return an action description for UIT_PROMPT type
UI strings.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2904)
(cherry picked from commit 6e470e190853f59a394dc92fefd74666c94266f4)

crypto/ui/ui_lib.c

index 12d62d86d344ad79582b5292fecb7d663ee1a3fd..c06baa0551beb3ecf62ec9c79569963a73c2faa6 100644 (file)
@@ -705,7 +705,6 @@ 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;
     default: