diff options
Diffstat (limited to 'apps/gendsa.c')
-rw-r--r-- | apps/gendsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gendsa.c b/apps/gendsa.c index bd8aecedbd..b6d1d0f5b3 100644 --- a/apps/gendsa.c +++ b/apps/gendsa.c @@ -148,6 +148,8 @@ int gendsa_main(int argc, char **argv) goto end; } pkey = app_keygen(ctx, "DSA", nbits, verbose); + if (pkey == NULL) + goto end; assert(private); if (!PEM_write_bio_PrivateKey(out, pkey, enc, NULL, 0, NULL, passout)) { |