summaryrefslogtreecommitdiff
path: root/lib/go/thrift/framed_transport.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/go/thrift/framed_transport.go')
-rw-r--r--lib/go/thrift/framed_transport.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/go/thrift/framed_transport.go b/lib/go/thrift/framed_transport.go
index f683e7f54..2156dd76f 100644
--- a/lib/go/thrift/framed_transport.go
+++ b/lib/go/thrift/framed_transport.go
@@ -200,7 +200,7 @@ func (p *TFramedTransport) readFrame() error {
return err
}
size := binary.BigEndian.Uint32(buf)
- if size < 0 || size > uint32(p.cfg.GetMaxFrameSize()) {
+ if size > uint32(p.cfg.GetMaxFrameSize()) {
return NewTTransportException(UNKNOWN_TRANSPORT_EXCEPTION, fmt.Sprintf("Incorrect frame size (%d)", size))
}
_, err := io.CopyN(&p.readBuf, p.reader, int64(size))