From b9b6f06bbb9850b3f2781c0a5c6d10d50a599802 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 23 Jun 2022 22:02:42 +0200 Subject: [PATCH] style --- client/src/cmdhfmfp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/cmdhfmfp.c b/client/src/cmdhfmfp.c index dcd73fb35..c05adfe40 100644 --- a/client/src/cmdhfmfp.c +++ b/client/src/cmdhfmfp.c @@ -1372,7 +1372,7 @@ static int CmdHFMFPMAD(const char *Cmd) { if (mfpReadSector(MF_MAD1_SECTOR, MF_KEY_A, (uint8_t *)g_mifarep_mad_key, sector0, verbose)) { PrintAndLogEx(NORMAL, ""); PrintAndLogEx(ERR, "error, read sector 0. card doesn't have MAD or doesn't have MAD on default keys"); - return 2; + return PM3_ESOFT; } PrintAndLogEx(NORMAL, ""); @@ -1392,7 +1392,7 @@ static int CmdHFMFPMAD(const char *Cmd) { if (mfpReadSector(MF_MAD2_SECTOR, MF_KEY_A, (uint8_t *)g_mifarep_mad_key, sector10, verbose)) { PrintAndLogEx(NORMAL, ""); PrintAndLogEx(ERR, "error, read sector 0x10. card doesn't have MAD or doesn't have MAD on default keys"); - return 2; + return PM3_ESOFT; } MAD2DecodeAndPrint(sector10, swapmad, verbose); @@ -1403,7 +1403,7 @@ static int CmdHFMFPMAD(const char *Cmd) { size_t madlen = 0; if (MADDecode(sector0, sector10, mad, &madlen, swapmad)) { PrintAndLogEx(ERR, "can't decode MAD"); - return 10; + return PM3_EWRONGANSWER; } // copy default NDEF key