]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix bug introduced in 'improve val_sigcrypt.c::algo_needs_missing for
authorGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 4 Jul 2022 07:34:45 +0000 (09:34 +0200)
committerGeorge Thessalonikefs <george@nlnetlabs.nl>
Mon, 4 Jul 2022 07:34:45 +0000 (09:34 +0200)
  one loop pass'.

doc/Changelog
validator/val_sigcrypt.c

index 2441999c7127c7dd7c652a55f016205581a4b02e..58c9d4a9685b2392b30164059c18fbb4567ca904 100644 (file)
@@ -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.
index 6d62119eb861cb3da1b7beda3f1ccad7ec277203..5ab21e20e7356f2514e1c5a6371e8329759f6ee4 100644 (file)
@@ -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;
 }