diff options
author | Matt Caswell <matt@openssl.org> | 2016-04-15 14:42:48 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-04-21 10:51:57 +0100 |
commit | bcc31778e3695e23d7c4cd6274126a8e3d58db72 (patch) | |
tree | 9424d28bd7dcd61159ca51241e9d3e6b621b5187 /apps/pkcs8.c | |
parent | e69f2a223cf7e2d7f5bcea43e68ce38818813b81 (diff) |
Add missing return value check in pkcs8 app
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'apps/pkcs8.c')
-rw-r--r-- | apps/pkcs8.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/pkcs8.c b/apps/pkcs8.c index 15b8e6a084..cd4e76b6d0 100644 --- a/apps/pkcs8.c +++ b/apps/pkcs8.c @@ -341,7 +341,10 @@ int pkcs8_main(int argc, char **argv) else if (1) { #ifndef OPENSSL_NO_UI p8pass = pass; - EVP_read_pw_string(pass, sizeof pass, "Enter Password:", 0); + if (EVP_read_pw_string(pass, sizeof pass, "Enter Password:", 0)) { + BIO_printf(bio_err, "Can't read Password\n"); + goto end; + } } else { #endif BIO_printf(bio_err, "Password required\n"); |