From b8ce6676ef5a59abe18b56e225c47305dc668c29 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Fri, 30 Jul 2021 20:13:33 +0300 Subject: [PATCH] select empty app --- client/src/cmdhfmfdes.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/cmdhfmfdes.c b/client/src/cmdhfmfdes.c index 325afe0f5..a709a4dd2 100644 --- a/client/src/cmdhfmfdes.c +++ b/client/src/cmdhfmfdes.c @@ -3077,13 +3077,13 @@ static int CmdHF14ADesSelectApp(const char *Cmd) { SetAPDULogging(APDULogging); CLIParserFree(ctx); - if (dfnamelen > 0) { // dctx.cmdSet == DCCISO ? + if (dctx.cmdSet == DCCISO || dfnamelen > 0) { uint8_t resp[250] = {0}; size_t resplen = 0; res = DesfireISOSelect(&dctx, (char *)dfname, resp, &resplen); if (res != PM3_SUCCESS) { DropField(); - PrintAndLogEx(FAILED, "ISO Select application " _RED_("failed")); + PrintAndLogEx(FAILED, "ISO Select application `%s` " _RED_("failed"), (char *)dfname); return res; }