Permalink
Browse files

bug fix on DNSParser::parseA (response buffer not correctly read)

  • Loading branch information...
1 parent b5b73b4 commit 2ad6630a18eef5823582c84414406299a50701f8 stefounet committed Jul 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ndns.js
View
@@ -1367,8 +1367,8 @@ DNSParser.prototype.parseA = function () {
throw new Error();
this.parseStart += 4;
return [this.buf[this.parseStart-4],
+ this.buf[this.parseStart-3],
this.buf[this.parseStart-2],
- this.buf[this.parseStart-1],
this.buf[this.parseStart-1]].join('.');
};

0 comments on commit 2ad6630

Please sign in to comment.