summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/ifdtool/ifdtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/ifdtool/ifdtool.c b/util/ifdtool/ifdtool.c
index a97f352bdf..6c5e784569 100644
--- a/util/ifdtool/ifdtool.c
+++ b/util/ifdtool/ifdtool.c
@@ -236,7 +236,7 @@ static int get_ifd_version_from_fcba(char *image, int size)
int read_freq;
const fcba_t *fcba = find_fcba(image, size);
const fdbar_t *fdb = find_fd(image, size);
- if (!fcba) /* a valid fcba indicates a valid fdb */
+ if (!fcba || !fdb)
exit(EXIT_FAILURE);
chipset = guess_ich_chipset(fdb);