]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
* Fix printout of escaped binary in TXT records.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 25 Jan 2011 10:30:50 +0000 (10:30 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 25 Jan 2011 10:30:50 +0000 (10:30 +0000)
Changelog
host2str.c

index 46157a360117df4571adb45159972f312fd1042a..22acf21f48e5d49cf78bcf907adc7c99147047b4 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,7 @@
-1.6.8
+1.6.9
+       * Fix printout of escaped binary in TXT records.
+
+1.6.8  2011-01-24
        * Fix ldns zone, so that $TTL definition match RFC 2308.
        * Fix lots of missing checks on allocation failures and parse of 
          NSEC with many types and max parse length in hosts_frm_fp routine
index 2a14e1f2e29eee491b3044e2d4086344b42088c5..e92937f23b9c6188e76f08370557792a5d8d7c6a 100644 (file)
@@ -272,7 +272,7 @@ ldns_rdf2buffer_str_dname(ldns_buffer *output, const ldns_rdf *dname)
                                                        data[src_pos]);
                                } else if (!isgraph((int) data[src_pos])) {
                                        ldns_buffer_printf(output, "\\%03u",
-                                                       data[src_pos]);
+                                                       data[src_pos]);
                                } else {
                                        ldns_buffer_printf(output, "%c", data[src_pos]);
                                }
@@ -367,7 +367,8 @@ ldns_rdf2buffer_str_str(ldns_buffer *output, const ldns_rdf *rdf)
                        else
                                ldns_buffer_printf(output, "%c", ch);
                } else {
-                       ldns_buffer_printf(output, "\\%03u", (unsigned) ch);
+                       ldns_buffer_printf(output, "\\%03u",
+                                (unsigned)(uint8_t) ch);
                }
        }
        ldns_buffer_printf(output, "\"");