Browse Source

correct magic number

pull/1008/head
Darien Raymond 7 years ago
parent
commit
5af3580bcf
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      common/crypto/auth.go

2
common/crypto/auth.go

@ -124,7 +124,7 @@ func (r *AuthenticationReader) readSize() (int32, error) {
var errSoft = newError("waiting for more data")
func (r *AuthenticationReader) readInternal(soft bool) (*buf.Buffer, error) {
if soft && r.reader.BufferedBytes() < 2 {
if soft && r.reader.BufferedBytes() < int32(r.sizeParser.SizeBytes()) {
return nil, errSoft
}

Loading…
Cancel
Save