aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/crypt_burn.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/crypt_burn.c')
-rw-r--r--scripts/crypt_burn.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/crypt_burn.c b/scripts/crypt_burn.c
index 64eb162c9..1f1536ae7 100644
--- a/scripts/crypt_burn.c
+++ b/scripts/crypt_burn.c
@@ -110,9 +110,12 @@ int main(int argc, char *argv[])
{
continue;
}
- crypter->decrypt(crypter,
- chunk_create(buffer, sizeof(buffer) / bs * bs),
- chunk_create(iv, crypter->get_iv_size(crypter)), NULL);
+ if (!crypter->decrypt(crypter,
+ chunk_create(buffer, sizeof(buffer) / bs * bs),
+ chunk_create(iv, crypter->get_iv_size(crypter)), NULL))
+ {
+ continue;
+ }
if (limit && ++i == limit)
{
break;