projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add error handling in dsa_main and ASN1_i2d_bio.
[openssl.git]
/
apps
/
dsa.c
diff --git
a/apps/dsa.c
b/apps/dsa.c
index 5410f04e37eae71892f9e219bdb4328a700d7c3d..74a68ff64b47dda79d7caa04c51740518a4b4b2f 100644
(file)
--- a/
apps/dsa.c
+++ b/
apps/dsa.c
@@
-217,6
+217,9
@@
int dsa_main(int argc, char **argv)
} else if (outformat == FORMAT_MSBLOB || outformat == FORMAT_PVK) {
EVP_PKEY *pk;
pk = EVP_PKEY_new();
+ if (pk == NULL)
+ goto end;
+
EVP_PKEY_set1_DSA(pk, dsa);
if (outformat == FORMAT_PVK) {
if (pubin) {