mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-21 17:48:07 +00:00
fix: usr: 'Recursive-clients 0;' triggers an assertion
BIND 9.20.0 broke `recursive-clients 0;`. This has now been fixed. Closes #4987 Merge branch '4987-fix-recursive-clients-0' into 'main' See merge request isc-projects/bind9!9621
This commit is contained in:
commit
d7fab54393
@ -19,6 +19,7 @@ options {
|
||||
listen-on { none; };
|
||||
listen-on-v6 { fd92:7065:b8e:ffff::9; };
|
||||
recursion yes;
|
||||
recursive-clients 0; // regression test for [GL #4987]
|
||||
dnssec-validation yes;
|
||||
dual-stack-servers { fd92:7065:b8e:ffff::7; };
|
||||
qname-minimization off;
|
||||
|
@ -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("a->max) > soft);
|
||||
atomic_store_relaxed("a->soft, soft);
|
||||
}
|
||||
|
||||
|
@ -53,6 +53,11 @@ ISC_RUN_TEST_IMPL(isc_quota_get_set) {
|
||||
assert_int_equal(isc_quota_getused("a), 1);
|
||||
isc_quota_release("a);
|
||||
assert_int_equal(isc_quota_getused("a), 0);
|
||||
|
||||
/* Unlimited */
|
||||
isc_quota_max("a, 0);
|
||||
isc_quota_soft("a, 0);
|
||||
|
||||
isc_quota_destroy("a);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user