]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Break out of the switch if we have already reached the quota
authorMark Andrews <marka@isc.org>
Mon, 22 Apr 2024 02:32:36 +0000 (12:32 +1000)
committerMark Andrews <marka@isc.org>
Mon, 22 Apr 2024 02:32:36 +0000 (12:32 +1000)
This prevents consume_validation_fail being called and causing an
INSIST.

lib/dns/validator.c

index ea4781de98d44380d08fc11a6662dd11eecc5684..7c4135b61cba9aab7814d1def421b159dda0e97f 100644 (file)
@@ -1482,6 +1482,7 @@ again:
                consume_validation(val);
                if (over_max_fails(val)) {
                        result = ISC_R_QUOTA;
+                       break;
                }
                consume_validation_fail(val);
        }