From f5e23fe88904fb5309e5b199bf5254b06dd4f883 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 22 May 2020 19:09:45 +0200 Subject: [PATCH] APPS: Remove unnecessary NULL check of uri in load_cert_pass() Reviewed-by: Viktor Dukhovni (Merged from https://github.com/openssl/openssl/pull/11873) --- apps/lib/apps.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/lib/apps.c b/apps/lib/apps.c index df4450d7e4..6fd27c3665 100644 --- a/apps/lib/apps.c +++ b/apps/lib/apps.c @@ -438,10 +438,6 @@ X509 *load_cert_pass(const char *uri, int maybe_stdin, if (desc == NULL) desc = "certificate"; - if (uri == NULL) { - unbuffer(stdin); - uri = ""; - } (void)load_key_cert_crl(uri, maybe_stdin, pass, desc, NULL, &cert, NULL); if (cert == NULL) { BIO_printf(bio_err, "Unable to load %s\n", desc); -- 2.25.1