hf mf: match the isOK status locals to reply_ng()
This commit is contained in:
1 parent
50a2b0ca37
commit
df68cf72e0
1 file changed
+3
-3
+3
-3
@@ -1825,7 +1825,7 @@ void MifareStaticNested(uint8_t blockNo, uint8_t keyType, uint8_t targetBlockNo,
|
|||||||
BigBuf_Clear_ext(false);
|
BigBuf_Clear_ext(false);
|
||||||
set_tracing(true);
|
set_tracing(true);
|
||||||
|
|
||||||
int16_t isOK = PM3_ESOFT;
|
int8_t isOK = PM3_ESOFT; // reply_ng() takes int8_t, match it
|
||||||
LED_C_ON();
|
LED_C_ON();
|
||||||
|
|
||||||
// Main loop - get crypted nonces for target sector
|
// Main loop - get crypted nonces for target sector
|
||||||
@@ -2677,7 +2677,7 @@ void MifareChkKeys_file(uint8_t *fn) {
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
void MifarePersonalizeUID(uint8_t keyType, uint8_t perso_option, uint64_t key) {
|
void MifarePersonalizeUID(uint8_t keyType, uint8_t perso_option, uint64_t key) {
|
||||||
|
|
||||||
uint16_t isOK = PM3_EUNDEF;
|
int8_t isOK = PM3_EUNDEF; // reply_ng() takes int8_t, match it
|
||||||
uint8_t uid[10] = { 0 };
|
uint8_t uid[10] = { 0 };
|
||||||
uint32_t cuid = 0;
|
uint32_t cuid = 0;
|
||||||
struct Crypto1State mpcs = {0, 0};
|
struct Crypto1State mpcs = {0, 0};
|
||||||
@@ -4074,7 +4074,7 @@ void MifareSetMod(uint8_t *datain) {
|
|||||||
uint64_t ui64Key = bytes_to_num(datain + 1, 6);
|
uint64_t ui64Key = bytes_to_num(datain + 1, 6);
|
||||||
|
|
||||||
// variables
|
// variables
|
||||||
uint16_t isOK = PM3_EUNDEF;
|
int8_t isOK = PM3_EUNDEF; // reply_ng() takes int8_t, match it
|
||||||
uint8_t *uid = BigBuf_calloc(10);
|
uint8_t *uid = BigBuf_calloc(10);
|
||||||
|
|
||||||
uint32_t cuid = 0;
|
uint32_t cuid = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user