]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/nonce2key/nonce2key.c
FIX: "hf mf hardnested" when "key found" exting the do-while loop doesn't need to...
[proxmark3-svn] / client / nonce2key / nonce2key.c
index 853329002c3352d85af1f2a06e2c9aa2ca12463b..638469a47686ccaf382496329fc5c2bf35ebcc00 100644 (file)
@@ -147,6 +147,7 @@ int nonce2key_ex(uint8_t blockno, uint8_t keytype, uint32_t uid, uint32_t nt, ui
        printf("key_count: %d\n", key_count);
        if ( key_count == 0 ){
                free(state);
+               state = NULL;
                return 0;
        }
        
@@ -169,6 +170,7 @@ out:
        free(last_keylist);
        last_keylist = NULL;
        free(state);
+       state = NULL;
        return retval;
 }
 
Impressum, Datenschutz