diff options
Diffstat (limited to 'apps/req.c')
| -rw-r--r-- | apps/req.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/req.c b/apps/req.c index 926f0796bc8f..41191803aef4 100644 --- a/apps/req.c +++ b/apps/req.c @@ -685,6 +685,8 @@ int req_main(int argc, char **argv) EVP_PKEY_CTX_set_app_data(genctx, bio_err); pkey = app_keygen(genctx, keyalgstr, newkey_len, verbose); + if (pkey == NULL) + goto end; EVP_PKEY_CTX_free(genctx); genctx = NULL; |
