mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Check early that the config target exists and isn't a template
Reviewed-by: Andy Polyakov <appro@openssl.org> (Merged from https://github.com/openssl/openssl/pull/6885)
This commit is contained in:
parent
2b98842325
commit
4e36044547
@ -1034,11 +1034,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});
|
||||
|
||||
foreach (keys %target_attr_translate) {
|
||||
$target{$target_attr_translate{$_}} = $target{$_}
|
||||
if $target{$_};
|
||||
|
Loading…
Reference in New Issue
Block a user