allow null txt records

This commit is contained in:
Mathias Buus 2016-02-18 13:15:35 -08:00
parent 73df75ad39
commit 00b27da6cc

View File

@ -171,6 +171,8 @@ rtxt.encode = function (data, buf, offset) {
if (!offset) offset = 0
if (typeof data === 'string') data = Buffer(data)
if (!data) data = Buffer(0)
var oldOffset = offset
offset += 2