summaryrefslogtreecommitdiffstats
path: root/Configure
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2018-11-01 13:55:32 +0100
committerRichard Levitte <levitte@openssl.org>2018-11-01 15:41:47 +0100
commit3bed01a09071fb289484dfd265f0a8a991537282 (patch)
treeb1cc0e9ff2477155eb269159fcab50cb79ebef02 /Configure
parentAvoid two memory allocations in each RAND_DRBG_bytes (diff)
downloadopenssl-3bed01a09071fb289484dfd265f0a8a991537282.tar.xz
openssl-3bed01a09071fb289484dfd265f0a8a991537282.zip
Configure: ensure empty arrays aren't created inadvertently
Just refering to a hash table element as an array reference will automatically create that element. Avoid that by defaulting to a separate empty array reference. Fixes #7543 Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7544)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index bf0c2d5f97..f46be6b4e5 100755
--- a/Configure
+++ b/Configure
@@ -2344,7 +2344,7 @@ EOF
my %dirs = ();
my $pd = dirname($product);
- foreach (@{$unified_info{sources}->{$product}},
+ foreach (@{$unified_info{sources}->{$product} // []},
@{$unified_info{shared_sources}->{$product} // []}) {
my $d = dirname($_);