]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/loclass/ikeys.c
FIX: 'LF PYRAMID' the crc8_MAXIM and crc16_DNP was calling the wrong crc method....
[proxmark3-svn] / client / loclass / ikeys.c
index 73da2ce6cd686b7bd0320c090a2531f2f19053a3..0ba788d7de39c0daa6ffb726784c47dbea9c06ce 100644 (file)
@@ -748,7 +748,10 @@ int readKeyFile(uint8_t key[8])
        if ( bytes_read == 1) {
                retval = 0;     
        }
        if ( bytes_read == 1) {
                retval = 0;     
        }
-       fclose(f);
+       if (f) {
+               fclose(f);
+               f = NULL;
+       }
        return retval;
 }
 
        return retval;
 }
 
Impressum, Datenschutz