From 9eb4b3c68c23622076943399ae2c8d298eb32799 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sat, 31 Jan 2009 14:39:18 +0100 Subject: [PATCH 1/1] don't continue with wrong checksum... --- firmware.c | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware.c b/firmware.c index 40c2b56..6ef5971 100644 --- a/firmware.c +++ b/firmware.c @@ -423,6 +423,7 @@ int main(int argc, char **argv) ret = check_crc(fw, statbuf.st_size); if ((ret != 0) && (!update_crc)) { fprintf(stderr,"Checksum incorrect, aborting...\n"); + exit(1); } if (patch_fw) { -- 2.39.5