]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/loclass/ikeys.c
CHG: added the ping command to the header file.
[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;     
        }
-       fclose(f);
+       if (f) {
+               fclose(f);
+               f = NULL;
+       }
        return retval;
 }
 
Impressum, Datenschutz