diff --git a/index.js b/index.js index 017d218..c4dee38 100644 --- a/index.js +++ b/index.js @@ -337,6 +337,8 @@ rcaa.encode = function (data, buf, offset) { if (data.issuerCritical) { data.flags = rcaa.ISSUER_CRITICAL + } else { + data.flags = 0 } buf.writeUInt16BE(len - 2, offset)