Break out of the switch if we have already reached the quota

This prevents consume_validation_fail being called and causing an
INSIST.
This commit is contained in:
Mark Andrews 2024-04-22 12:32:36 +10:00
parent 970ac03196
commit 26375bdcf2

View file

@ -1482,6 +1482,7 @@ again:
consume_validation(val);
if (over_max_fails(val)) {
result = ISC_R_QUOTA;
break;
}
consume_validation_fail(val);
}