X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/5e14319d2c993ef4530ee2de36ad849abe17ec1c..680433820190cca9441042cb835fb0d229f674a3:/client/nonce2key/nonce2key.c diff --git a/client/nonce2key/nonce2key.c b/client/nonce2key/nonce2key.c index 85332900..638469a4 100644 --- a/client/nonce2key/nonce2key.c +++ b/client/nonce2key/nonce2key.c @@ -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; }