mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-04-21 17:01:35 +00:00
Correctly propagate error in AuthenticationReader readBuffer
This commit is contained in:
@@ -181,7 +181,7 @@ func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBuffer) erro
|
||||
if size <= buf.Size {
|
||||
b, err := r.readBuffer(effectiveSize, int32(padding))
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
*mb = append(*mb, b)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user