Commit 32096fda authored by Richard Levitte's avatar Richard Levitte
Browse files

Check early that the config target exists and isn't a template



Reviewed-by: default avatarAndy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6885)

(cherry picked from commit 4e360445)
parent 29cbeb9f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -911,11 +911,12 @@ if ($d) {
	$target = $t;
    }
}

&usage if !$table{$target} || $table{$target}->{template};

$config{target} = $target;
my %target = resolve_config($target);

&usage if (!%target || $target{template});

my %conf_files = map { $_ => 1 } (@{$target{_conf_fname_int}});
$config{conf_files} = [ sort keys %conf_files ];
%target = ( %{$table{DEFAULTS}}, %target );