From b87b8e1d212b43f225891570ebc5045c6331dd8a Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 12 Sep 2024 13:16:12 +0200 Subject: [PATCH] * Fix #254: Unquoted "value" rdata for CAA records fail to validate. Follows the long string unquoted syntax from RFC8659, section 4.1.1. --- Changelog | 2 ++ rr.c | 6 ------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Changelog b/Changelog index 00f692a0..476b9c18 100644 --- a/Changelog +++ b/Changelog @@ -7,6 +7,8 @@ CDS and CDNSKEY RRs. Thanks tgreenx * PR #245: Make drill trace use IPv6 when used with -6 Thanks Paul Radford + * Fix #254: Unquoted "value" rdata for CAA records fail to validate. + Follows the long string unquoted syntax from RFC8659, section 4.1.1. 1.8.4 2024-07-19 * Fix building documentation in build directory. diff --git a/rr.c b/rr.c index 95d07d31..ec191b74 100644 --- a/rr.c +++ b/rr.c @@ -390,12 +390,6 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str, ldns_buffer_skip(rd_buf, 1); quoted = true; } - if (!quoted && ldns_rr_descriptor_field_type(desc, r_cnt) - == LDNS_RDF_TYPE_LONG_STR) { - - status = LDNS_STATUS_SYNTAX_RDATA_ERR; - goto error; - } } /* because number of fields can be variable, we can't rely on