From cd0a8f242522cc69b142fa8a64f49cae749ff02e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 4 Oct 2016 15:55:10 -0700 Subject: [PATCH] net: fix packet checksum error handling. --- lib/net/parser.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/net/parser.js b/lib/net/parser.js index 455e5b8d..043885f0 100644 --- a/lib/net/parser.js +++ b/lib/net/parser.js @@ -135,10 +135,7 @@ Parser.prototype.parse = function parse(data) { if (checksum !== this.header.checksum) { this.waiting = 24; this.header = null; - return this.error( - 'Invalid checksum: %d != %d', - utils.hex32(checksum), - utils.hex32(this.header.checksum)); + return this.error('Invalid checksum: %d.', utils.hex32(checksum)); } try {