]> git.ipfire.org Git - thirdparty/bind9.git/commit
Match prefetch eligibility behavior with ARM
authorAram Sargsyan <aram@isc.org>
Tue, 18 Oct 2022 12:59:47 +0000 (12:59 +0000)
committerAram Sargsyan <aram@isc.org>
Fri, 21 Oct 2022 10:30:28 +0000 (10:30 +0000)
commit648e71b0868d8fb9424889e7be1ee5db3e6aed4f
tree124be31e2a911b84e06ccda12764c1d5ecd0b33c
parent822dd7b8b9737eb95964d367a04ee9d7f875ece5
Match prefetch eligibility behavior with ARM

ARM states that the "eligibility" TTL is the smallest original TTL
value that is accepted for a record to be eligible for prefetching,
but the code, which implements the condition doesn't behave in that
manner for the edge case when the TTL is equal to the configured
eligibility value.

Fix the code to check that the TTL is greater than, or equal to the
configured eligibility value, instead of just greater than it.

(cherry picked from commit 863f51466e1d0ab8ab7410132d21fb0b0a4ba168)
lib/dns/resolver.c