From ff600e9aa0ebb472101b5ba453c8b389066bcf03 Mon Sep 17 00:00:00 2001 From: Alexander Simmerl Date: Thu, 18 Jan 2018 19:40:34 +0100 Subject: [PATCH] wip: check error of wire read --- types/priv_validator/socket.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/priv_validator/socket.go b/types/priv_validator/socket.go index f55b6c7f..2ed4c46f 100644 --- a/types/priv_validator/socket.go +++ b/types/priv_validator/socket.go @@ -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)