]> git.ipfire.org Git - thirdparty/bind9.git/commit
avoid retrying a server if its address is unusable
authorJINMEI Tatuya <jtatuya@infoblox.com>
Thu, 30 Oct 2025 04:58:18 +0000 (21:58 -0700)
committerArаm Sаrgsyаn <aram@isc.org>
Mon, 3 Nov 2025 19:37:09 +0000 (19:37 +0000)
commit022bf31fabe70e0555bba3aac98f752c79e3b3cc
tree0a7196ee458f4ec7ec1ada80dca6e320b4163a11
parent141f68437d33522dd2b4535f358241cb01c9a894
avoid retrying a server if its address is unusable

Previously, if there's no more server to try in force_next,
it attempted to retry the current server similar to a query
timeout case. But, force_next() is called only when the
current server's address is unusable and the query was not
even sent, so recvcount was not incremented, causing an
assertion failure.

We might be able to fix it so the retry doesn't cause a crash,
but it doesn't make sense to retry the server when its address
is known to be unusable. So, simply avoiding the retry would be
the easiest and safest way to prevent the crash.
bin/dig/dighost.c