summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-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))