mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fix bug introduced in 'improve val_sigcrypt.c::algo_needs_missing for
one loop pass'.
This commit is contained in:
parent
309b1d368b
commit
eda0c0c194
2 changed files with 6 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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; i<ALGO_NEEDS_MAX; i++)
|
||||
for(i=0; i<ALGO_NEEDS_MAX; i++) {
|
||||
if(n->needs[i] == 2)
|
||||
return 0;
|
||||
if(n->needs[i] == 1 && miss == -1)
|
||||
miss = i;
|
||||
}
|
||||
if(miss != -1) return miss;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue