diff options
author | Jakob Unterwurzacher | 2015-09-30 20:31:41 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-09-30 20:31:41 +0200 |
commit | 061831edf25ba854b603635ade82f0ce317fe8bc (patch) | |
tree | f2da39948049d03027a9f29edf899da7dd776beb | |
parent | 7d666bd87d9ccfebfdb61639982ccbbb0cd73f17 (diff) |
DecryptBlocks: Don't shadow err variable
-rw-r--r-- | cryptfs/cryptfs_content.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cryptfs/cryptfs_content.go b/cryptfs/cryptfs_content.go index 374b4f4..5350ec7 100644 --- a/cryptfs/cryptfs_content.go +++ b/cryptfs/cryptfs_content.go @@ -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 } |