mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-24 22:26:05 +03:00
Correctly propagate error in AuthenticationReader readBuffer
This commit is contained in:
parent
a994bf8b04
commit
87ef07d5f4
@ -178,7 +178,7 @@ func (r *AuthenticationReader) readInternal(soft bool, mb *buf.MultiBuffer) erro
|
|||||||
if size <= buf.Size {
|
if size <= buf.Size {
|
||||||
b, err := r.readBuffer(int32(size), int32(padding))
|
b, err := r.readBuffer(int32(size), int32(padding))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
*mb = append(*mb, b)
|
*mb = append(*mb, b)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user