From 7cbac6067e824dbe8d07605e069201343535ee9c Mon Sep 17 00:00:00 2001 From: grspy <49810400+grspy@users.noreply.github.com> Date: Sun, 20 Oct 2019 20:08:52 +0300 Subject: [PATCH] Fix pack in dump PACK wasn't included in the output dump due to incorrect check of ul_auth_select return value --- client/cmdhfmfu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhfmfu.c b/client/cmdhfmfu.c index e3ae2f0e1..06f44e35d 100644 --- a/client/cmdhfmfu.c +++ b/client/cmdhfmfu.c @@ -1991,7 +1991,7 @@ static int CmdHF14AMfUDump(const char *Cmd) { if (!(tagtype & UL_C || tagtype & UL)) { //attempt to read pack uint8_t get_pack[] = {0, 0}; - if (!ul_auth_select(&card, tagtype, true, authKeyPtr, get_pack, sizeof(get_pack))) { + if (ul_auth_select(&card, tagtype, true, authKeyPtr, get_pack, sizeof(get_pack)) != PM3_SUCCESS) { //reset pack get_pack[0] = 0; get_pack[1] = 0;