Browse Source

fix auth reader

Darien Raymond 9 years ago
parent
commit
8ced9aeec8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      common/crypto/auth.go

+ 1 - 1
common/crypto/auth.go

@@ -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
 		}