]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix the yaml query zone name code in dnstap-read
authorMark Andrews <marka@isc.org>
Tue, 19 May 2026 05:00:17 +0000 (15:00 +1000)
committerMichał Kępień <michal@isc.org>
Fri, 10 Jul 2026 07:26:46 +0000 (09:26 +0200)
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.

bin/tools/dnstap-read.c

index e226efa45b04b555a2cd6894d6e627e7c86e6007..4a382f2bb34a29948014ceb88b1288089eee28a8 100644 (file)
@@ -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);