Browse Source

wip: check error of wire read

pull/1204/head
Alexander Simmerl 7 years ago
committed by Ethan Buchman
parent
commit
ff600e9aa0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      types/priv_validator/socket.go

+ 4
- 0
types/priv_validator/socket.go View File

@ -199,6 +199,10 @@ func (pvss *PrivValidatorSocketServer) acceptConnectionsRoutine() {
var n int var n int
var err error var err error
b := wire.ReadByteSlice(conn, 0, &n, &err) //XXX: no max b := wire.ReadByteSlice(conn, 0, &n, &err) //XXX: no max
if err != nil {
panic(err)
}
req, err := decodeMsg(b) req, err := decodeMsg(b)
if err != nil { if err != nil {
panic(err) panic(err)


Loading…
Cancel
Save