From 97f86b7a6184dbac91216b3a119d9848beadbaff Mon Sep 17 00:00:00 2001
From: iceman1001 <iceman@iuse.se>
Date: Tue, 15 Nov 2016 12:13:15 +0100
Subject: [PATCH] chg: removed a useless clearing of key_count. From @matrix
 https://github.com/matrix/proxmark3/commit/090682764b3d18cdc7982a3aa384c8cff7e0bf8c

---
 client/nonce2key/nonce2key.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/client/nonce2key/nonce2key.c b/client/nonce2key/nonce2key.c
index 638469a4..3d3d1e37 100644
--- a/client/nonce2key/nonce2key.c
+++ b/client/nonce2key/nonce2key.c
@@ -97,7 +97,6 @@ int nonce2key_ex(uint8_t blockno, uint8_t keytype, uint32_t uid, uint32_t nt, ui
 	state = lfsr_common_prefix_ex(nr, ks3x);
 
 	if (!state) {
-		key_count = 0;
 		PrintAndLog("Failed getting states");
 		return 1;
 	}
@@ -117,7 +116,6 @@ int nonce2key_ex(uint8_t blockno, uint8_t keytype, uint32_t uid, uint32_t nt, ui
 	
 	// first call to this function.  clear all other stuff and set new found states.
 	if (last_keylist == NULL) {
-		key_count = 0;
 		free(last_keylist);
 		last_keylist = state_s;
 		PrintAndLog("parity is all zero, testing special attack. First call, this attack needs at least two calls. Hold on...");		
-- 
2.39.5