]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Print the full OID in PRIVATEOID key comments 12377/head
authorOndřej Surý <ondrej@isc.org>
Thu, 9 Jul 2026 13:06:31 +0000 (15:06 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 9 Jul 2026 14:23:46 +0000 (16:23 +0200)
The OID printed in the "; alg = ..." comment of a PRIVATEOID KEY,
DNSKEY, CDNSKEY or RKEY record was truncated to sixteen characters:
1.2.840.113549.1.1.11 came out as 1.2.840.113549.1.  Only the comment
was ever affected, never the record itself.

lib/dns/rdata/generic/key_25.c

index 0dfc0cf7e3f27469751c909df3869dc9c5e0b1e0..bc807107a304cd0727acd7521095fbf5127787e4 100644 (file)
@@ -133,7 +133,7 @@ generic_totext_key(ARGS_TOTEXT) {
                const unsigned char *in = sr.base + 1;
                ASN1_OBJECT *obj = d2i_ASN1_OBJECT(NULL, &in, *sr.base);
                INSIST(obj != NULL);
-               int n = i2t_ASN1_OBJECT(algbuf, sizeof(buf), obj);
+               int n = i2t_ASN1_OBJECT(algbuf, sizeof(algbuf), obj);
                ASN1_OBJECT_free(obj);
                if (n == -1 || (size_t)n >= sizeof(algbuf)) {
                        dns_secalg_format((dns_secalg_t)algorithm, algbuf,