From e8736016bf4ed7f5c33ad101d6a15f3fc0e6c5ac Mon Sep 17 00:00:00 2001 From: Simon Rogers Date: Thu, 1 Mar 2018 22:40:24 +0100 Subject: [PATCH] Mask MS bit of class in answer parser --- dns.parser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dns.parser.js b/dns.parser.js index 92d7b31..1d4a8a6 100644 --- a/dns.parser.js +++ b/dns.parser.js @@ -198,6 +198,7 @@ pdns.unpack = function (ab) { q.rdlength = dv.getUint16(total, false); total += 2; + q.class &= 0x7fff; q.className = classes[q.class]; q.typeName = types[q.type];