From 8ced9aeec8f6d94bf045d5c8f5544feff42caf19 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Tue, 13 Dec 2016 08:30:24 +0100 Subject: [PATCH] fix auth reader --- common/crypto/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/crypto/auth.go b/common/crypto/auth.go index 706e2ea8..ec197cee 100644 --- a/common/crypto/auth.go +++ b/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 }