From 3b96189a2afa4949e1d9cdf7c9fa8244d8d817f0 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 6 Jul 2012 16:11:15 +0200 Subject: Add a return value to crypter_t.decrypt() --- scripts/crypt_burn.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'scripts/crypt_burn.c') 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; -- cgit v1.2.3