fix fallback for CAA flags

This commit is contained in:
silverwind 2017-08-12 22:09:43 +02:00
parent a39813b2d5
commit e44b28c817
No known key found for this signature in database
GPG Key ID: 09623425339D14F7

View File

@ -337,13 +337,11 @@ rcaa.encode = function (data, buf, offset) {
if (data.issuerCritical) {
data.flags = rcaa.ISSUER_CRITICAL
} else {
data.flags = 0
}
buf.writeUInt16BE(len - 2, offset)
offset += 2
buf.writeUInt8(data.flags, offset)
buf.writeUInt8(data.flags || 0, offset)
offset += 1
string.encode(data.tag, buf, offset)
offset += string.encode.bytes