Fix ui_write in apps/apps.c
authorRichard Levitte <levitte@openssl.org>
Sat, 19 Aug 2017 16:45:43 +0000 (18:45 +0200)
committerRichard Levitte <levitte@openssl.org>
Sat, 19 Aug 2017 19:56:43 +0000 (21:56 +0200)
It used the default UI reader as fallback instead of the UI writer.

Fixes #4147
Fixes #4195

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/4198)

apps/apps.c

index e1228b3792dd16e316f7f85ddafcb2886a3ca3e3..6ff41972e3f23a8f6d635b28697fe0323bba63b1 100644 (file)
@@ -240,7 +240,7 @@ static int ui_write(UI *ui, UI_STRING *uis)
         }
     }
 
-    writer = UI_method_get_reader(ui_fallback_method);
+    writer = UI_method_get_writer(ui_fallback_method);
     if (writer)
         return writer(ui, uis);
     return 1;