diff --git a/client/src/cmdnfc.c b/client/src/cmdnfc.c index a3f6ffd05..ab5ad1ac5 100644 --- a/client/src/cmdnfc.c +++ b/client/src/cmdnfc.c @@ -107,7 +107,7 @@ static int CmdNfcDecode(const char *Cmd) { uint8_t *dump = NULL; size_t bytes_read = 4096; res = pm3_load_dump(filename, (void **)&dump, &bytes_read, 4096); - if (res != PM3_SUCCESS) { + if (res != PM3_SUCCESS || dump == NULL) { return res; }