From: Michael Gernoth Date: Sat, 31 Jan 2009 13:39:18 +0000 (+0100) Subject: don't continue with wrong checksum... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/rsbs2/commitdiff_plain/9eb4b3c68c23622076943399ae2c8d298eb32799?hp=f1fd0cb05e4ee07857ef2fd32131728739088b7f don't continue with wrong checksum... --- 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) {