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:32:18 +0000 (12:32 +1100)
commit317bedd656e76b1162a6b29ed19a78303f362a78
tree0122eb1de04f5d191f7579a346581f9691be055e
parentceeb92f7b52fbbb349cca8d9560a0708d948936a
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)

(cherry picked from commit a595e3286ae9f033c56452967b3add2145f9085f)
Configure