From 35b060fcc994bc019acdfa96f30cf8aa4f41881a Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Mon, 23 May 2016 15:47:43 +0200 Subject: [PATCH] Make sure to initialize all CA.pl variables properly Reviewed-by: Rich Salz --- apps/CA.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/CA.pl.in b/apps/CA.pl.in index 4fc408896d..0dec24c36f 100644 --- a/apps/CA.pl.in +++ b/apps/CA.pl.in @@ -23,7 +23,7 @@ if(defined $ENV{'OPENSSL'}) { my $verbose = 1; -my $OPENSSL_CONFIG = $ENV{"OPENSSL_CONFIG"}; +my $OPENSSL_CONFIG = $ENV{"OPENSSL_CONFIG"} || ""; my $DAYS = "-days 365"; my $CADAYS = "-days 1095"; # 3 years my $REQ = "$openssl req $OPENSSL_CONFIG"; @@ -45,7 +45,7 @@ my $NEWREQ = "newreq.pem"; my $NEWCERT = "newcert.pem"; my $NEWP12 = "newcert.p12"; my $RET = 0; -my $WHAT = shift @ARGV; +my $WHAT = shift @ARGV || ""; my $FILE; # See if reason for a CRL entry is valid; exit if not. -- 2.25.1