bind9/lib
Tony Finch 4191fd01be Ensure that dns_request_createvia() has a retry limit
There are a couple of problems with dns_request_createvia(): a UDP
retry count of zero means unlimited retries (it should mean no
retries), and the overall request timeout is not enforced. The
combination of these bugs means that requests can be retried forever.

This change alters calls to dns_request_createvia() to avoid the
infinite retry bug by providing an explicit retry count. Previously,
the calls specified infinite retries and relied on the limit implied
by the overall request timeout and the UDP timeout (which did not work
because the overall timeout is not enforced). The `udpretries`
argument is also changed to be the number of retries; previously, zero
was interpreted as infinity because of an underflow to UINT_MAX, which
appeared to be a mistake. And `mdig` is updated to match the change in
retry accounting.

The bug could be triggered by zone maintenance queries, including
NOTIFY messages, DS parental checks, refresh SOA queries and stub zone
nameserver lookups. It could also occur with `nsupdate -r 0`.
(But `mdig` had its own code to avoid the bug.)

(cherry picked from commit 71ce8b0a51)
2022-04-06 18:17:55 +01:00
..
bind9 More explicit dns64 prefix errors 2022-03-25 16:08:22 +01:00
dns Ensure that dns_request_createvia() has a retry limit 2022-04-06 18:17:55 +01:00
irs Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
isc Revert "Run the RPZ update as offloaded work" 2022-04-06 10:30:06 +02:00
isccc Remove use of the inline keyword used as suggestion to compiler 2022-03-25 08:42:18 +01:00
isccfg Rename the configuration option to load balance sockets to reuseport 2022-04-06 17:24:13 +02:00
ns Log "not authoritative for update zone" more clearly 2022-03-30 13:19:46 +01:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
Makefile.am move samples/resolve.c to bin/tests/system 2021-04-16 14:29:43 +02:00
unit-test-driver.sh.in Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00