X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/841d7af0dcaa91b937cd17631ee460cb5301d6ef..680433820190cca9441042cb835fb0d229f674a3:/client/loclass/ikeys.c?ds=sidebyside diff --git a/client/loclass/ikeys.c b/client/loclass/ikeys.c index 73da2ce6..0ba788d7 100644 --- a/client/loclass/ikeys.c +++ b/client/loclass/ikeys.c @@ -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; }