summaryrefslogtreecommitdiff
path: root/apps/dsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dsa.c')
-rw-r--r--apps/dsa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dsa.c b/apps/dsa.c
index 4ed21d8..82a870e 100644
--- a/apps/dsa.c
+++ b/apps/dsa.c
@@ -327,6 +327,9 @@ int 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)
i = i2b_PVK_bio(out, pk, pvk_encr, 0, passout);