]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
CHG: still issues left.
authoriceman1001 <iceman@iuse.se>
Sat, 29 Oct 2016 21:58:59 +0000 (23:58 +0200)
committericeman1001 <iceman@iuse.se>
Sat, 29 Oct 2016 21:58:59 +0000 (23:58 +0200)
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