Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

Commit 32096fd

Browse files
committed
Check early that the config target exists and isn't a template
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from openssl#6885) (cherry picked from commit 4e36044)
1 parent 29cbeb9 commit 32096fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Configure

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,11 +911,12 @@ if ($d) {
911911
$target = $t;
912912
}
913913
}
914+
915+
&usage if !$table{$target} || $table{$target}->{template};
916+
914917
$config{target} = $target;
915918
my %target = resolve_config($target);
916919

917-
&usage if (!%target || $target{template});
918-
919920
my %conf_files = map { $_ => 1 } (@{$target{_conf_fname_int}});
920921
$config{conf_files} = [ sort keys %conf_files ];
921922
%target = ( %{$table{DEFAULTS}}, %target );

0 commit comments

Comments
 (0)