Fix recursive-clients 0

Setting recursive-clients 0 triggered an assertion in isc_quota_soft.
This has now been fixed.

(cherry picked from commit 840eaa628d)
This commit is contained in:
Mark Andrews 2024-10-14 14:09:03 +11:00
parent 14c5d7f551
commit 887e874e93

View file

@ -36,7 +36,6 @@ isc_quota_init(isc_quota_t *quota, unsigned int max) {
void
isc_quota_soft(isc_quota_t *quota, unsigned int soft) {
REQUIRE(VALID_QUOTA(quota));
REQUIRE(atomic_load_relaxed(&quota->max) > soft);
atomic_store_relaxed(&quota->soft, soft);
}