diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index c8ee0013c..24296b31d 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -1279,7 +1279,7 @@ static int CmdHF14AMfNested(const char *Cmd) { } // check if tag doesn't have static nonce - if (detect_classic_static_nonce() != 0) { + if (detect_classic_static_nonce() == 1) { PrintAndLogEx(WARNING, "Static nonce detected. Quitting..."); PrintAndLogEx(INFO, "\t Try use " _YELLOW_("`hf mf staticnested`")); return PM3_EOPABORTED; @@ -1839,7 +1839,7 @@ static int CmdHF14AMfNestedHard(const char *Cmd) { if (!know_target_key && nonce_file_read == false) { // check if tag doesn't have static nonce - if (detect_classic_static_nonce() != 0) { + if (detect_classic_static_nonce() == 1) { PrintAndLogEx(WARNING, "Static nonce detected. Quitting..."); PrintAndLogEx(INFO, "\t Try use `" _YELLOW_("hf mf staticnested") "`"); return PM3_EOPABORTED; diff --git a/client/cmdhfmfhard.c b/client/cmdhfmfhard.c index 32afd8cf2..90f686b80 100644 --- a/client/cmdhfmfhard.c +++ b/client/cmdhfmfhard.c @@ -1845,7 +1845,6 @@ static bool TestIfKeyExists(uint64_t key) { num_keys_tested += count; hardnested_print_progress(num_acquired_nonces, "(Test: Key found)", 0.0, 0); crypto1_destroy(pcs); - pthread_mutex_destroy(&statelist_cache_mutex); return true; } } @@ -1853,7 +1852,6 @@ static bool TestIfKeyExists(uint64_t key) { num_keys_tested += count; hardnested_print_progress(num_acquired_nonces, "(Test: Key NOT found)", 0.0, 0); crypto1_destroy(pcs); - pthread_mutex_destroy(&statelist_cache_mutex); return false; }