]> git.zerfleddert.de Git - rsbs2/commitdiff
don't continue with wrong checksum...
authorMichael Gernoth <michael@gernoth.net>
Sat, 31 Jan 2009 13:39:18 +0000 (14:39 +0100)
committerMichael Gernoth <michael@gernoth.net>
Sat, 31 Jan 2009 13:39:18 +0000 (14:39 +0100)
firmware.c

index 40c2b56c32e7d794f3654f9e39be5ff677bc44f6..6ef5971461c7773eb7655e7b5cf9353f180a2f7f 100644 (file)
@@ -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) {
Impressum, Datenschutz