From 4e360445473c3da938703a8142a36cf6ee86a191 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 7 Aug 2018 12:38:16 +0200 Subject: [PATCH] Check early that the config target exists and isn't a template Reviewed-by: Andy Polyakov (Merged from https://github.com/openssl/openssl/pull/6885) --- Configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Configure b/Configure index 9f728b9242..059271275d 100755 --- a/Configure +++ b/Configure @@ -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{$_}; -- 2.25.1