mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-12 18:25:07 +08:00
coverity - fix tainted
This commit is contained in:
parent
6d3adf71b6
commit
0aa88aecf5
1 changed files with 2 additions and 1 deletions
|
@ -408,7 +408,8 @@ 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;
|
||||||
|
|
Loading…
Reference in a new issue