coverity - fix tainted

This commit is contained in:
iceman1001 2019-10-09 12:45:12 +02:00
parent 6d3adf71b6
commit 0aa88aecf5

View file

@ -408,7 +408,8 @@ static struct emv_pk *emv_pk_get_ca_pk_from_file(const char *fname,
char buf[2048];
if (fgets(buf, sizeof(buf), f) == NULL)
break;
if (buf == NULL)
break;
struct emv_pk *pk = emv_pk_parse_pk(buf);
if (!pk)
continue;