terminate MX label with null

This commit is contained in:
AJ ONeal 2017-10-19 12:15:45 -06:00
parent 908fd5314c
commit c6715ee6bf
1 changed files with 5 additions and 2 deletions

View File

@ -31,6 +31,9 @@ exports.DNS_PACKER_TYPE_MX = function (ab, dv, total, record) {
total += 1;
});
});
dv.setUint8(total, 0, false);
total += 1;
mxLen += 1;
// RDLENGTH
dv.setUint16(rdLenIndex, mxLen, false);