From 346b929c4df682474906d882adbd3709b715b34c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 6 Jul 2022 14:57:12 +0200 Subject: [PATCH] see if this silences coverity --- client/src/cmdhfemrtd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/cmdhfemrtd.c b/client/src/cmdhfemrtd.c index ed2fb00d6..3216f68ae 100644 --- a/client/src/cmdhfemrtd.c +++ b/client/src/cmdhfemrtd.c @@ -2083,6 +2083,11 @@ int infoHF_EMRTD_offline(const char *path) { return PM3_ESOFT; } + // coverity scan CID 395630, + if (data != NULL) { + return PM3_ESOFT; + } + res = emrtd_parse_ef_sod_hashes(data, datalen, *dg_hashes_sod, &hash_algo); if (res != PM3_SUCCESS) { PrintAndLogEx(ERR, "Failed to read hash list from EF_SOD. Hash checks will fail.");