Fix ui_write in apps/apps.c

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)
This commit is contained in:
Richard Levitte 2017-08-19 18:45:43 +02:00
parent b842fcbb37
commit 72460149db

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