Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Fix critical RLPX bug leading to not processing incoming EIP-8 Auth/Ack msgs #26

Merged
merged 1 commit into from
Feb 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rlpx/ecies.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ECIES {
}

// parse packet
this._remotePublicKey = remotePublicKey // 64 bytes
this._remotePublicKey = remotePublicKey // 64 bytes
this._remoteNonce = nonce // 32 bytes
// util.assertEq(decrypted[193], 0, 'invalid postfix')

Expand Down
4 changes: 2 additions & 2 deletions src/rlpx/peer.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Peer extends EventEmitter {
} catch (err) {
this._eciesSession._gotEIP8Auth = true
this._nextPacketSize = util.buffer2int(data.slice(0, 2)) + 2
break
continue
}
} else {
this._eciesSession.parseAuthEIP8(parseData)
Expand All @@ -86,7 +86,7 @@ class Peer extends EventEmitter {
} catch (err) {
this._eciesSession._gotEIP8Ack = true
this._nextPacketSize = util.buffer2int(data.slice(0, 2)) + 2
break
continue
}
} else {
this._eciesSession.parseAckEIP8(parseData)
Expand Down