From: Mark Andrews Date: Tue, 19 May 2026 05:00:17 +0000 (+1000) Subject: Fix the yaml query zone name code in dnstap-read X-Git-Tag: v9.21.24~13^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a25522c28c46655a81d2bf1d96374c81d834b157;p=thirdparty%2Fbind9.git Fix the yaml query zone name code in dnstap-read When the buffer to read the query zone name was constructed isc_buffer_setactive was not called. This is now needed as dns_name_fromwire is being corrected to check the active region. --- diff --git a/bin/tools/dnstap-read.c b/bin/tools/dnstap-read.c index e226efa45b0..4a382f2bb34 100644 --- a/bin/tools/dnstap-read.c +++ b/bin/tools/dnstap-read.c @@ -307,6 +307,7 @@ print_yaml(dns_dtdata_t *dt) { isc_buffer_init(&b, m->query_zone.data, m->query_zone.len); isc_buffer_add(&b, m->query_zone.len); + isc_buffer_setactive(&b, m->query_zone.len); result = dns_name_fromwire(name, &b, DNS_DECOMPRESS_NEVER, NULL);