Fix small UI issues
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 08:26:25 +0000 (10:26 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 09:15:37 +0000 (11:15 +0200)
commitb96dba9e5ec7afc355be1eab915f69c8c0d51741
tree9e1a038d3dfcd503f3dd38a159c3f03516316f24
parent67f060acefae34d820ccdb2f560d86ed10633500
Fix small UI issues

- in EVP_read_pw_string_min(), the return value from UI_add_* wasn't
  properly checked
- in UI_process(), |state| was never made NULL, which means an error
  when closing the session wouldn't be accurately reported.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/3849)
crypto/evp/evp_key.c
crypto/ui/ui_lib.c