Skip to content

Commit

Permalink
Fix error in Dns.decode_RR
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaxxz committed Apr 7, 2015
1 parent e08f5f1 commit bb645b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode/dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ DNS.prototype.decode_RR = function (is_question) {
this.offset += 2;

if (rr.type === 1 && rr.class === 1 && rr.rdlength) { // A, IN
rr.rdata = new IPv4Addr.decode(this.raw_packet, this.offset);
rr.rdata = new IPv4Addr().decode(this.raw_packet, this.offset);
} else if (rr.type === 2 && rr.class === 1) { // NS, IN
rr.rdata = this.read_name();
this.offset -= rr.rdlength; // read_name moves offset
Expand Down

0 comments on commit bb645b7

Please sign in to comment.