forked from LittleChest/dns-packet
initialize caa flags to 0 when not given
This commit is contained in:
parent
a69aaa1023
commit
03ca378b02
2
index.js
2
index.js
@ -337,6 +337,8 @@ rcaa.encode = function (data, buf, offset) {
|
|||||||
|
|
||||||
if (data.issuerCritical) {
|
if (data.issuerCritical) {
|
||||||
data.flags = rcaa.ISSUER_CRITICAL
|
data.flags = rcaa.ISSUER_CRITICAL
|
||||||
|
} else {
|
||||||
|
data.flags = 0
|
||||||
}
|
}
|
||||||
|
|
||||||
buf.writeUInt16BE(len - 2, offset)
|
buf.writeUInt16BE(len - 2, offset)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user