req: fix Coverity 1485137 Explicit null dereference
authorPauli <pauli@openssl.org>
Sun, 30 May 2021 23:26:05 +0000 (09:26 +1000)
committerPauli <pauli@openssl.org>
Tue, 1 Jun 2021 08:46:44 +0000 (18:46 +1000)
commit8ee66a092c07e618191ef49c8912f8235b08bb95
treeab8e77cc16286610b2836a704d7d9db905c08f8f
parent28cab20916731c188180628330de27f6ce5f684e
req: fix Coverity 1485137 Explicit null dereference

Add a check for a non-existent file name when specifying params via file.
Add a check for a failure to determine key type.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15534)
apps/req.c