]> git.ipfire.org Git - thirdparty/bind9.git/commit
nsupdate: when set to 0, UDP timeout should be calculated by dns_request
authorAram Sargsyan <aram@isc.org>
Mon, 12 Dec 2022 11:36:42 +0000 (11:36 +0000)
committerAram Sargsyan <aram@isc.org>
Mon, 3 Apr 2023 16:18:39 +0000 (16:18 +0000)
commitb015b87fdcdbd753c65bd420373d976a0c6babe7
treee9c234e7129ae8ea5c6ca62a2c6fe2024dc18dbb
parent9597a3aaca3f269e5533785003f0e5922d19a2aa
nsupdate: when set to 0, UDP timeout should be calculated by dns_request

The manual page of nsupdate's '-u udptimeout' option states that, quote:

> If zero, the interval is computed from the timeout interval and number
> of UDP retries.

However, nsupdate sets the UDP timeout value to UINT_MAX when it is 0,
thus, not behaving as documented.

Let dns_request_create() calculate the UDP timeout, if it was set to 0.

(cherry picked from commit 0ef11c0ccbea4db66f9edd6818a3a836f6c625f2)
bin/nsupdate/nsupdate.c