summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-10-07 17:34:08 +0200
committerTomas Mraz <tomas@openssl.org>2021-10-11 16:32:04 +0200
commit58608487a44b3991ecc6d431d6273b2ca8c980a6 (patch)
tree9be00e001999ad9a5f686ee6a3238065300ad83b /apps
parent0db3a9904fa00569905be130854a31dab7b8f49d (diff)
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)
Diffstat (limited to 'apps')
-rw-r--r--apps/req.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/req.c b/apps/req.c
index f756c25b2a..aac972e29b 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -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");
}