From: Wouter Wijngaards Date: Tue, 25 Jan 2011 10:30:50 +0000 (+0000) Subject: * Fix printout of escaped binary in TXT records. X-Git-Tag: release-1.6.9rc1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c047e08ea9d0c491b4c701b57468f7c2a1ee389e;p=thirdparty%2Fldns.git * Fix printout of escaped binary in TXT records. --- diff --git a/Changelog b/Changelog index 46157a36..22acf21f 100644 --- 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 diff --git a/host2str.c b/host2str.c index 2a14e1f2..e92937f2 100644 --- a/host2str.c +++ b/host2str.c @@ -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, "\"");