Fix UI_get0_action_string()

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)
This commit is contained in:
Richard Levitte 2017-03-11 00:54:52 +01:00
parent fe6984df95
commit f31c714e92

View 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: