DecryptBlocks: Don't shadow err variable
This commit is contained in:
parent
7d666bd87d
commit
061831edf2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user