]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Use no spaces version of xfrBlob for TSIG
authorAki Tuomi <cmouse@cmouse.fi>
Sat, 31 Jan 2015 14:01:21 +0000 (16:01 +0200)
committerAki Tuomi <cmouse@cmouse.fi>
Sat, 31 Jan 2015 14:01:35 +0000 (16:01 +0200)
pdns/dnsrecords.cc

index 0bc47a8d03375d4bceca0259b254f9f6b782536d..6e187bd65afb02fa04c50953a718699f0b3bef2e 100644 (file)
@@ -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)