diff options
author | Richard Levitte <levitte@openssl.org> | 2017-03-11 00:54:52 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2017-03-11 01:25:06 +0100 |
commit | 6e470e190853f59a394dc92fefd74666c94266f4 (patch) | |
tree | 50f544acf4cd69f5463476f6645c44215c910944 /crypto/ui/ui_lib.c | |
parent | 5469600e367a1a4cf3dd929159b5bc8091db49de (diff) | |
download | openssl-6e470e190853f59a394dc92fefd74666c94266f4.tar.gz |
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)
Diffstat (limited to 'crypto/ui/ui_lib.c')
-rw-r--r-- | crypto/ui/ui_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ui/ui_lib.c b/crypto/ui/ui_lib.c index ceda7e934f..7f30a5b0af 100644 --- a/crypto/ui/ui_lib.c +++ b/crypto/ui/ui_lib.c @@ -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: |