]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix dst_algorithm_fromdata to set the active range
authorMark Andrews <marka@isc.org>
Tue, 19 May 2026 05:14:06 +0000 (15:14 +1000)
committerMichał Kępień <michal@isc.org>
Fri, 10 Jul 2026 07:26:46 +0000 (09:26 +0200)
When the buffer to check extract the PRIVATEDNS 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.

lib/dns/dst_api.c

index 47ce85851704075cf7075d731b39b7a1d09c5780..22de68e5072a42eeafbc3a14f9ce4095c1a3d999 100644 (file)
@@ -2700,6 +2700,7 @@ dst_algorithm_fromdata(dns_secalg_t algorithm, unsigned char *data,
        case DNS_KEYALG_PRIVATEDNS:
                isc_buffer_init(&b, data, length);
                isc_buffer_add(&b, length);
+               isc_buffer_setactive(&b, length);
                return dst_algorithm_fromprivatedns(&b);
        case DNS_KEYALG_PRIVATEOID:
                isc_buffer_init(&b, data, length);