aboutsummaryrefslogtreecommitdiffstats
path: root/whisper
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-23 22:08:29 +0800
committerFelix Lange <fjl@twurst.com>2015-04-17 20:45:09 +0800
commit56a48101dc3dd96587915a5d7882f9d46ecc6ae9 (patch)
tree575920d621c24815f0b197f46ab32cba2735b99b /whisper
parentc35f4fd0bd93bcab01ba7704fc144514a2cc7a1b (diff)
downloadgo-tangerine-56a48101dc3dd96587915a5d7882f9d46ecc6ae9.tar.gz
go-tangerine-56a48101dc3dd96587915a5d7882f9d46ecc6ae9.tar.zst
go-tangerine-56a48101dc3dd96587915a5d7882f9d46ecc6ae9.zip
cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limit
Diffstat (limited to 'whisper')
-rw-r--r--whisper/peer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/whisper/peer.go b/whisper/peer.go
index e4301f37c..28abf4260 100644
--- a/whisper/peer.go
+++ b/whisper/peer.go
@@ -66,7 +66,7 @@ func (self *peer) handshake() error {
if packet.Code != statusCode {
return fmt.Errorf("peer sent %x before status packet", packet.Code)
}
- s := rlp.NewStream(packet.Payload)
+ s := rlp.NewStream(packet.Payload, uint64(packet.Size))
if _, err := s.List(); err != nil {
return fmt.Errorf("bad status message: %v", err)
}