summaryrefslogtreecommitdiffstats
path: root/utils/imxtools/sbtools
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-08-31 14:32:01 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-01-16 19:51:12 +0100
commitcb8a98e365c0b69e068dc077eb5d68dd4a29a1ad (patch)
tree0d63f1ee91fb96a856e729c4b09aed893935e8be /utils/imxtools/sbtools
parenta5950c69af6663895eb158027489e703a2da284f (diff)
downloadrockbox-cb8a98e365c0b69e068dc077eb5d68dd4a29a1ad.tar.gz
rockbox-cb8a98e365c0b69e068dc077eb5d68dd4a29a1ad.tar.bz2
rockbox-cb8a98e365c0b69e068dc077eb5d68dd4a29a1ad.zip
imxtools: correctly read unencrypted images in raw mode
Change-Id: I87830b81a017f36d2887d9c289d09812f227b157
Diffstat (limited to 'utils/imxtools/sbtools')
-rw-r--r--utils/imxtools/sbtools/sb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/imxtools/sbtools/sb.c b/utils/imxtools/sbtools/sb.c
index c005b07ff7..145df39762 100644
--- a/utils/imxtools/sbtools/sb.c
+++ b/utils/imxtools/sbtools/sb.c
@@ -938,6 +938,8 @@ struct sb_file_t *sb_read_memory(void *_buf, size_t filesize, unsigned flags, vo
memcpy(sb_file->real_key, real_key, 16);
memcpy(sb_file->crypto_iv, buf, 16);
}
+ else
+ valid_key = true;
/* sections */
if(!(flags & SB_RAW_MODE))