Skip to content

Commit

Permalink
Merge pull request #2715 from nvx/fix_uscuid_csetuid
Browse files Browse the repository at this point in the history
fix hf mf csetuid --gdm
  • Loading branch information
iceman1001 authored Jan 14, 2025
2 parents 766a91d + 97953d1 commit 9b68dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/mifare/mifarehost.c
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ int mf_chinese_set_uid(uint8_t *uid, uint8_t uidlen, const uint8_t *atqa, const

res = mf_chinese_set_block(0, block0, NULL, params);
if (res == PM3_SUCCESS) {
params = MAGIC_SINGLE | MAGIC_WUPC;
params = MAGIC_SINGLE | (gdm ? MAGIC_GDM_ALT_WUPC : MAGIC_WUPC);
memset(block0, 0, sizeof(block0));
res = mf_chinese_get_block(0, block0, params);
if (res == 0) {
Expand Down

0 comments on commit 9b68dc1

Please sign in to comment.