]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
bugfix #613: Allow tab ws in var length last rdfs
authorWillem Toorop <willem@nlnetlabs.nl>
Mon, 29 Sep 2014 08:56:39 +0000 (10:56 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 29 Sep 2014 08:56:39 +0000 (10:56 +0200)
Thanks Xiali Yan

Changelog
rr.c

index 76e5c8c6002ce7cf41351c826b6a6b6ca879465f..f8fea0db8a313fb25c2df918715874671689daaa 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -24,6 +24,8 @@ TBD
          Thanks Johannes Naab
        * fix: Memory leak in ldns_dname2buffer_wire_compress()
          Thanks Max Liebkies
+       * bugfix #613: Allow tab as whitespace too in last rdata field of types
+         of variable length.  Thanks Xiali Yan
 
 1.6.17 2014-01-10
        * Fix ldns_dnssec_zone_new_frm_fp_l to allow the last parsed line of a
diff --git a/rr.c b/rr.c
index e5c990123979e9e44a14302de83fcfc5fb3b4028..c6f7eeb55fe56e79e761209b4f902dbb5662030c 100644 (file)
--- a/rr.c
+++ b/rr.c
@@ -348,7 +348,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
                case LDNS_RDF_TYPE_WKS        : /* it is the last rd field. */
                case LDNS_RDF_TYPE_IPSECKEY   :
                case LDNS_RDF_TYPE_NSEC       : if (r_cnt == r_max - 1) {
-                                                       delimiters = "\n\t";
+                                                       delimiters = "\n";
                                                        break;
                                                }
                default                       : delimiters = "\n\t ";