mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
wip: check error of wire read
This commit is contained in:
committed by
Ethan Buchman
parent
a49357b19e
commit
ff600e9aa0
@@ -199,6 +199,10 @@ func (pvss *PrivValidatorSocketServer) acceptConnectionsRoutine() {
|
||||
var n int
|
||||
var err error
|
||||
b := wire.ReadByteSlice(conn, 0, &n, &err) //XXX: no max
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
req, err := decodeMsg(b)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user