Fix error in processing $target{enable}
authorRichard Levitte <levitte@openssl.org>
Wed, 12 Dec 2018 08:27:48 +0000 (09:27 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 12 Dec 2018 10:11:33 +0000 (11:11 +0100)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7885)

(cherry picked from commit 7a8a35ff0ce0c25a36b494a4c7e3f5f390679e6e)

Configure

index 28f6eb746f687a5bab71c1f648708d7c1f048156..b6c9465875684a9c9d78b2cb753e57492af1c26a 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -1110,13 +1110,13 @@ foreach my $feature (@{$target{disable}}) {
     $disabled{$feature} = 'config';
 }
 foreach my $feature (@{$target{enable}}) {
-    if ("default" eq ($disabled{$_} // "")) {
+    if ("default" eq ($disabled{$feature} // "")) {
         if (exists $deprecated_disablables{$feature}) {
             warn "***** config $target enables deprecated feature $feature\n";
         } elsif (!grep { $feature eq $_ } @disablables) {
             die "***** config $target enables unknown feature $feature\n";
         }
-        delete $disabled{$_};
+        delete $disabled{$feature};
     }
 }