net: fix packet checksum error handling.
This commit is contained in:
parent
be34f8c7bf
commit
cd0a8f2425
@ -135,10 +135,7 @@ Parser.prototype.parse = function parse(data) {
|
|||||||
if (checksum !== this.header.checksum) {
|
if (checksum !== this.header.checksum) {
|
||||||
this.waiting = 24;
|
this.waiting = 24;
|
||||||
this.header = null;
|
this.header = null;
|
||||||
return this.error(
|
return this.error('Invalid checksum: %d.', utils.hex32(checksum));
|
||||||
'Invalid checksum: %d != %d',
|
|
||||||
utils.hex32(checksum),
|
|
||||||
utils.hex32(this.header.checksum));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user