Browse Source

Correctly propagate error in AuthenticationReader readBuffer

pull/3096/head
风扇滑翔翼 9 months ago committed by yuhan6665
parent
commit
87ef07d5f4
  1. 2
      common/crypto/auth.go

2
common/crypto/auth.go

@ -178,7 +178,7 @@ func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBuffer) erro
if size <= buf.Size {
b, err := r.readBuffer(int32(size), int32(padding))
if err != nil {
return nil
return err
}
*mb = append(*mb, b)
return nil

Loading…
Cancel
Save