Skip to content

Commit 5eb33cb

Browse files
committed
Use no spaces version of xfrBlob for TSIG
1 parent 6f0d4f1 commit 5eb33cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pdns/dnsrecords.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ boilerplate_conv(TSIG, ns_t_tsig,
162162
conv.xfr16BitInt(d_fudge);
163163
uint16_t size=d_mac.size();
164164
conv.xfr16BitInt(size);
165-
conv.xfrBlob(d_mac, size);
165+
if (size>0) conv.xfrBlobNoSpaces(d_mac, size);
166166
conv.xfr16BitInt(d_origID);
167167
conv.xfr16BitInt(d_eRcode);
168-
size=d_otherData.size();
168+
size=d_otherData.size();
169169
conv.xfr16BitInt(size);
170-
if (size>0) conv.xfrBlob(d_otherData, size);
170+
if (size>0) conv.xfrBlobNoSpaces(d_otherData, size);
171171
);
172172

173173
MXRecordContent::MXRecordContent(uint16_t preference, const string& mxname) : DNSRecordContent(ns_t_mx), d_preference(preference), d_mxname(mxname)

0 commit comments

Comments
 (0)