Skip to content

Commit

Permalink
Merge pull request node-pcap#168 from sandeshdanwale/patch-1
Browse files Browse the repository at this point in the history
Update tcp.js
  • Loading branch information
jmaxxz committed May 4, 2015
2 parents 32b93f0 + 0c79627 commit 2a63d07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decode/tcp.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ TCP.prototype.decode = function (raw_packet, offset, len) {
// add a buffer slice pointing to the data area of this TCP packet.
// Note that this does not make a copy, so ret.data is only valid for this current
// trip through the capture loop.
this.data = raw_packet.slice(offset, offset + this.data_bytes);
this.data = raw_packet.slice(offset, offset + this.dataLength);
} else {
// null indicated the value was set. Where as undefined
// means the value was never set. Since there is no data
Expand Down

0 comments on commit 2a63d07

Please sign in to comment.