]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix EDNS Report Channel checking code
authorMark Andrews <marka@isc.org>
Tue, 19 May 2026 01:09:02 +0000 (11:09 +1000)
committerMichał Kępień <michal@isc.org>
Fri, 10 Jul 2026 07:26:46 +0000 (09:26 +0200)
When the buffer to check the Report Channel domain was constructed
isc_buffer_setactive was not called.  This is now needed as
dns_name_fromwire is being corrected to check the active region.

lib/dns/rdata/generic/opt_41.c

index b71128b674946214f55f18bc7c9ec52ba8dbbb10..d9513b75fd4632395e22ebbac7c7aedf1cd18c6c 100644 (file)
@@ -257,6 +257,7 @@ fromwire_opt(ARGS_FROMWIRE) {
                        }
                        isc_buffer_init(&b, sregion.base, length);
                        isc_buffer_add(&b, length);
+                       isc_buffer_setactive(&b, length);
                        name = dns_fixedname_initname(&fixed);
                        result = dns_name_fromwire(name, &b, dctx, NULL);
                        if (result != ISC_R_SUCCESS || name->length != length ||