mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 02:34:48 +08:00
..revert
This commit is contained in:
parent
3361715121
commit
ab222a06b9
1 changed files with 2 additions and 4 deletions
|
@ -408,23 +408,21 @@ static struct emv_pk *emv_pk_get_ca_pk_from_file(const char *fname,
|
||||||
char buf[2048];
|
char buf[2048];
|
||||||
if (fgets(buf, sizeof(buf), f) == NULL)
|
if (fgets(buf, sizeof(buf), f) == NULL)
|
||||||
break;
|
break;
|
||||||
if (buf == NULL)
|
|
||||||
break;
|
|
||||||
struct emv_pk *pk = emv_pk_parse_pk(buf);
|
struct emv_pk *pk = emv_pk_parse_pk(buf);
|
||||||
if (!pk)
|
if (!pk)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (memcmp(pk->rid, rid, 5) || pk->index != idx) {
|
if (memcmp(pk->rid, rid, 5) || pk->index != idx) {
|
||||||
emv_pk_free(pk);
|
emv_pk_free(pk);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
return pk;
|
return pk;
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue