]> git.ipfire.org Git - thirdparty/bind9.git/commit
Increment query counters on resend
authorColin Vidal <colin@isc.org>
Wed, 15 Apr 2026 20:40:56 +0000 (22:40 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 7 May 2026 13:14:06 +0000 (15:14 +0200)
commitd9cf180c8eefee316728a6ebcf0c8e8318b20e0c
treef3b2da2503418afb882cc89baee9ed9386cff2d9
parent63ca855f376ee5f45b621f93891a9c5e70e7913b
Increment query counters on resend

Internal resend paths in the resolver can be triggered in flows that
are expected to execute at most once. For example, when a query fails
and a specific flag is not set, the flag is enabled and the query is
retried. On a subsequent failure, the flag prevents another retry and
the resolver proceeds to the next server (or aborts).

However, if a flag check is accidentally omitted, this can result in
an unbounded loop repeatedly querying the same server. To guard
against this, resend operations now also increment the query
counters, ensuring such loops are eventually capped by the configured
limits.

This is a 9.11 re-implementation of the original commits:

00345dde8feadf6601c864f000d99e42986159d9
b863694b32f8f764ae7475939888aebe99425b90
lib/dns/resolver.c