DecryptBlocks: Don't shadow err variable

This commit is contained in:
Jakob Unterwurzacher 2015-09-30 20:31:41 +02:00
parent 7d666bd87d
commit 061831edf2

View File

@ -21,7 +21,8 @@ func (be *CryptFS) DecryptBlocks(ciphertext []byte) ([]byte, error) {
var pBuf bytes.Buffer
for cBuf.Len() > 0 {
cBlock := cBuf.Next(int(be.cipherBS))
pBlock, err := be.DecryptBlock(cBlock)
var pBlock []byte
pBlock, err = be.DecryptBlock(cBlock)
if err != nil {
break
}