req: Do not warn about using stdin when generating new request

Fixes #16773

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16774)
This commit is contained in:
Tomas Mraz 2021-10-07 17:34:08 +02:00
parent 0db3a9904f
commit 58608487a4
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ int req_main(int argc, char **argv)
if (infile == NULL) {
if (gen_x509)
newreq = 1;
else
else if (!newreq)
BIO_printf(bio_err,
"Warning: Will read cert request from stdin since no -in option is given\n");
}