From: Richard Levitte Date: Fri, 22 May 2020 17:09:45 +0000 (+0200) Subject: APPS: Remove unnecessary NULL check of uri in load_cert_pass() X-Git-Tag: openssl-3.0.0-alpha4~169 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f5e23fe88904fb5309e5b199bf5254b06dd4f883;p=oweals%2Fopenssl.git APPS: Remove unnecessary NULL check of uri in load_cert_pass() Reviewed-by: Viktor Dukhovni (Merged from https://github.com/openssl/openssl/pull/11873) --- 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);