From eda0c0c194c76f3df05393ce57c503e1f605c733 Mon Sep 17 00:00:00 2001 From: George Thessalonikefs Date: Mon, 4 Jul 2022 09:34:45 +0200 Subject: [PATCH] - Fix bug introduced in 'improve val_sigcrypt.c::algo_needs_missing for one loop pass'. --- doc/Changelog | 4 ++++ validator/val_sigcrypt.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/Changelog b/doc/Changelog index 2441999c7..58c9d4a96 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,7 @@ +4 July 2022: George + - Fix bug introduced in 'improve val_sigcrypt.c::algo_needs_missing for + one loop pass'. + 3 July 2022: George - Merge PR #671 from Petr Menšík: Disable ED25519 and ED448 in FIPS mode on openssl3. diff --git a/validator/val_sigcrypt.c b/validator/val_sigcrypt.c index 6d62119eb..5ab21e20e 100644 --- a/validator/val_sigcrypt.c +++ b/validator/val_sigcrypt.c @@ -517,11 +517,12 @@ int algo_needs_missing(struct algo_needs* n) /* check if a needed algo was bogus - report that; * check the first missing algo - report that; * or return 0 */ - for(i=0; ineeds[i] == 2) return 0; if(n->needs[i] == 1 && miss == -1) miss = i; + } if(miss != -1) return miss; return 0; } -- 2.47.3