Fix proper number of bytes returned from streaming

This commit is contained in:
alexmullins 2015-11-06 00:54:33 -06:00
parent 8d81f262c6
commit 119f51e65c
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ func (a *authReader) Read(p []byte) (int, error) {
nn, err := a.mac.Write(p[:n])
if nn != n || err != nil {
a.err = ErrDecryption
return nn, a.err
return n, a.err
}
if end {
ab := new(bytes.Buffer)