From: Aki Tuomi Date: Sat, 31 Jan 2015 14:01:21 +0000 (+0200) Subject: Use no spaces version of xfrBlob for TSIG X-Git-Tag: dnsdist-1.0.0-alpha1~293^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11c029c0cbe89506a70e993e7299d225111d8266;p=thirdparty%2Fpdns.git Use no spaces version of xfrBlob for TSIG --- diff --git a/pdns/dnsrecords.cc b/pdns/dnsrecords.cc index 0bc47a8d03..6e187bd65a 100644 --- a/pdns/dnsrecords.cc +++ b/pdns/dnsrecords.cc @@ -148,12 +148,12 @@ boilerplate_conv(TSIG, QType::TSIG, conv.xfr16BitInt(d_fudge); uint16_t size=d_mac.size(); conv.xfr16BitInt(size); - conv.xfrBlob(d_mac, size); + if (size>0) conv.xfrBlobNoSpaces(d_mac, size); conv.xfr16BitInt(d_origID); conv.xfr16BitInt(d_eRcode); - size=d_otherData.size(); + size=d_otherData.size(); conv.xfr16BitInt(size); - if (size>0) conv.xfrBlob(d_otherData, size); + if (size>0) conv.xfrBlobNoSpaces(d_otherData, size); ); MXRecordContent::MXRecordContent(uint16_t preference, const string& mxname) : DNSRecordContent(QType::MX), d_preference(preference), d_mxname(mxname)