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:17:16 +0000 (11:17 +0200)
commitf22a0783075002f4b7802f54b3903ff733410110
tree2509bcb80ada87c368ef4d1386a9fc44c360ca7e
parent1408482587df60662a87943de3f9581dae75ecc0
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)

(cherry picked from commit b96dba9e5ec7afc355be1eab915f69c8c0d51741)
crypto/evp/evp_key.c
crypto/ui/ui_lib.c