mirror of https://github.com/openssl/openssl
Fix error in processing $target{enable}
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7885)
This commit is contained in:
parent
143b631639
commit
7a8a35ff0c
|
@ -1112,13 +1112,13 @@ foreach my $feature (@{$target{disable}}) {
|
||||||
$disabled{$feature} = 'config';
|
$disabled{$feature} = 'config';
|
||||||
}
|
}
|
||||||
foreach my $feature (@{$target{enable}}) {
|
foreach my $feature (@{$target{enable}}) {
|
||||||
if ("default" eq ($disabled{$_} // "")) {
|
if ("default" eq ($disabled{$feature} // "")) {
|
||||||
if (exists $deprecated_disablables{$feature}) {
|
if (exists $deprecated_disablables{$feature}) {
|
||||||
warn "***** config $target enables deprecated feature $feature\n";
|
warn "***** config $target enables deprecated feature $feature\n";
|
||||||
} elsif (!grep { $feature eq $_ } @disablables) {
|
} elsif (!grep { $feature eq $_ } @disablables) {
|
||||||
die "***** config $target enables unknown feature $feature\n";
|
die "***** config $target enables unknown feature $feature\n";
|
||||||
}
|
}
|
||||||
delete $disabled{$_};
|
delete $disabled{$feature};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue