]> git.ipfire.org Git - thirdparty/bind9.git/commit
Funnel the validator's DS fetches through a single helper 12144/head
authorOndřej Surý <ondrej@isc.org>
Fri, 29 May 2026 10:10:29 +0000 (12:10 +0200)
committerOndřej Surý <ondrej@isc.org>
Sat, 30 May 2026 03:59:31 +0000 (05:59 +0200)
commitdc3e15d7a65a4bf73f71454b29c4b3f2e4dfaf68
tree0129a7bd26b0d5d0580fd4d78f8d20282c1bf7d2
parented3a16bea8b0d4222ef828f11304a6ae0d86c694
Funnel the validator's DS fetches through a single helper

The validator starts a DS fetch from three places while building or
proving a trust chain.  Only validate_dnskey() handed the resolver the
parent zone cut as a delegation hint; the other two started the fetch
with no hint at all.

Factor the shared setup into create_ds_fetch() and route all three
through it, so every validator DS fetch is created identically and
carries the parent zone cut.  DS is an at-parent type, so the resolver
already anchors such a query at the parent on its own; supplying the
zone cut explicitly also lets the resolver's fetch loop detection match
the fetch by domain, which it cannot do for a fetch with no hint.

Assisted-by: Claude:claude-opus-4-8
lib/dns/validator.c