diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-23 22:08:29 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-04-17 20:45:09 +0800 |
commit | 56a48101dc3dd96587915a5d7882f9d46ecc6ae9 (patch) | |
tree | 575920d621c24815f0b197f46ab32cba2735b99b /whisper/peer.go | |
parent | c35f4fd0bd93bcab01ba7704fc144514a2cc7a1b (diff) | |
download | go-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/peer.go')
-rw-r--r-- | whisper/peer.go | 2 |
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) } |