summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-15 14:42:48 +0100
committerMatt Caswell <matt@openssl.org>2016-04-21 10:51:57 +0100
commitbcc31778e3695e23d7c4cd6274126a8e3d58db72 (patch)
tree9424d28bd7dcd61159ca51241e9d3e6b621b5187
parente69f2a223cf7e2d7f5bcea43e68ce38818813b81 (diff)
Add missing return value check in pkcs8 app
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r--apps/pkcs8.c5
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");