From: Mark Andrews Date: Mon, 22 Apr 2024 02:32:36 +0000 (+1000) Subject: Break out of the switch if we have already reached the quota X-Git-Tag: v9.19.24~19^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=26375bdcf21cd98d289359fe4e09662880abe7da;p=thirdparty%2Fbind9.git Break out of the switch if we have already reached the quota This prevents consume_validation_fail being called and causing an INSIST. --- diff --git a/lib/dns/validator.c b/lib/dns/validator.c index ea4781de98d..7c4135b61cb 100644 --- a/lib/dns/validator.c +++ b/lib/dns/validator.c @@ -1482,6 +1482,7 @@ again: consume_validation(val); if (over_max_fails(val)) { result = ISC_R_QUOTA; + break; } consume_validation_fail(val); }