Merge pull request #446 from grspy/master

Fix pack in dump
This commit is contained in:
Iceman 2019-10-20 19:39:39 +02:00 committed by GitHub
commit e31f5fa816
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;