]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
* Fix #254: Unquoted "value" rdata for CAA records fail to validate.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Sep 2024 11:16:12 +0000 (13:16 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Sep 2024 11:16:12 +0000 (13:16 +0200)
  Follows the long string unquoted syntax from RFC8659, section 4.1.1.

Changelog
rr.c

index 00f692a09f0d84860f4cc37a3730a20feb417a0e..476b9c18e93cae0528f4d4fb079230928fda3ac5 100644 (file)
--- 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 95d07d31c75b81962d344f5f1244721e2e0779b7..ec191b74bc4ed7320a9fcf4992af7f909507afef 100644 (file)
--- 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