projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e69f2a2
)
Add missing return value check in pkcs8 app
author
Matt Caswell
<matt@openssl.org>
Fri, 15 Apr 2016 13:42:48 +0000
(14:42 +0100)
committer
Matt Caswell
<matt@openssl.org>
Thu, 21 Apr 2016 09:51:57 +0000
(10:51 +0100)
Reviewed-by: Richard Levitte <levitte@openssl.org>
apps/pkcs8.c
patch
|
blob
|
history
diff --git
a/apps/pkcs8.c
b/apps/pkcs8.c
index 15b8e6a08417f903138abfd3f9db92313de6c9c2..cd4e76b6d079af327139b36851fae96b2c2de012 100644
(file)
--- 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");