Fix pack in dump

PACK wasn't included in the output dump due to incorrect check of ul_auth_select return value
This commit is contained in:
grspy
2019-10-20 20:08:52 +03:00
committed by GitHub
parent 2f573ebfb3
commit 7cbac6067e

View File

@@ -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;