From: Mark Andrews Date: Tue, 19 May 2026 01:09:02 +0000 (+1000) Subject: Fix EDNS Report Channel checking code X-Git-Tag: v9.21.24~13^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16dbf9ba918542a590a935f6881889e30fe0dc33;p=thirdparty%2Fbind9.git Fix EDNS Report Channel checking code 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. --- diff --git a/lib/dns/rdata/generic/opt_41.c b/lib/dns/rdata/generic/opt_41.c index b71128b6749..d9513b75fd4 100644 --- a/lib/dns/rdata/generic/opt_41.c +++ b/lib/dns/rdata/generic/opt_41.c @@ -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 ||