diff --git a/pkg/network/capability/capability.go b/pkg/network/capability/capability.go index ff5380aa7..7b489ef3a 100644 --- a/pkg/network/capability/capability.go +++ b/pkg/network/capability/capability.go @@ -65,6 +65,7 @@ func (c *Capability) DecodeBinary(br *io.BinReader) { c.Data = &Server{} default: br.Err = errors.New("unknown node capability type") + return } c.Data.DecodeBinary(br) }