1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

fix auth reader

This commit is contained in:
Darien Raymond 2016-12-13 08:30:24 +01:00
parent 948c86e5c5
commit 8ced9aeec8
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -159,7 +159,7 @@ func (v *AuthenticationReader) Read(b []byte) (int, error) {
}
totalBytes := v.CopyChunk(b)
for v.aggressive {
for v.aggressive && totalBytes < len(b) {
if err := v.NextChunk(); err != nil {
break
}