Fix Configure variable spill
authorAlexandros Roussos <thealexroussos@gmail.com>
Mon, 20 Dec 2021 18:14:57 +0000 (19:14 +0100)
committerPauli <pauli@openssl.org>
Thu, 23 Dec 2021 01:31:33 +0000 (12:31 +1100)
commita595e3286ae9f033c56452967b3add2145f9085f
treee523008c44e6e87448f47fc1dc87e751a2d48b62
parent7a85dd46e0b2f67b341c777509f0126e3252938d
Fix Configure variable spill

* Evaluating code-refs in Configure can sometimes set the default
variable `$_`
* Prevent spillage influencing the target property by using named
variable in loop

CLA: trivial

Fixes gh-17321

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17322)
Configure