]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Make it clearer that decompression is not allowed here
authorMark Andrews <marka@isc.org>
Tue, 19 May 2026 01:24:01 +0000 (11:24 +1000)
committerMichał Kępień <michal@isc.org>
Fri, 10 Jul 2026 07:26:46 +0000 (09:26 +0200)
For DNSKEY and RRSIG as per RFC 4034, A.1.1. Private Algorithm Types

For KEY, SIG as per RFC 2535 3.2 The KEY Algorithm Number Specification,
which only allowed local domain compression which itself is no
longer allowed.

Other key types inherit from these or the general proscription that
compression is not allow in new types.

lib/dns/dst_api.c
lib/dns/rdata.c

index 22de68e5072a42eeafbc3a14f9ce4095c1a3d999..d4307b309a8f3dfe05710ceca7f299fc0626f597 100644 (file)
@@ -2633,7 +2633,7 @@ dst_algorithm_fromprivatedns(isc_buffer_t *buffer) {
        dns_name_t *name = dns_fixedname_initname(&fixed);
        isc_result_t result;
 
-       result = dns_name_fromwire(name, buffer, DNS_DECOMPRESS_DEFAULT, NULL);
+       result = dns_name_fromwire(name, buffer, DNS_DECOMPRESS_NEVER, NULL);
        if (result != ISC_R_SUCCESS) {
                return 0;
        }
index 3330d47d71c02b04ce26fd37d42ff3db7614cead..dc6931ea106cf51522b7164bebd17a8a0d9620e4 100644 (file)
@@ -589,7 +589,7 @@ check_private(isc_buffer_t *source, dns_secalg_t alg) {
                dns_fixedname_t fixed;
 
                RETERR(dns_name_fromwire(dns_fixedname_initname(&fixed), source,
-                                        DNS_DECOMPRESS_DEFAULT, NULL));
+                                        DNS_DECOMPRESS_NEVER, NULL));
        } else if (alg == DNS_KEYALG_PRIVATEOID) {
                /*
                 * Check that we can extract the OID from the start of the