mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
style
This commit is contained in:
parent
c55b4d5aac
commit
64f9bb5e01
20 changed files with 135 additions and 135 deletions
|
@ -268,15 +268,13 @@ static void *brute_thread(void *arguments) {
|
||||||
printf("CMD enc(%08x)\n", cmd_enc);
|
printf("CMD enc(%08x)\n", cmd_enc);
|
||||||
printf(" dec(%08x)\t", decrypted);
|
printf(" dec(%08x)\t", decrypted);
|
||||||
|
|
||||||
uint8_t isOK = 0;
|
|
||||||
// check if cmd exists
|
// check if cmd exists
|
||||||
isOK = checkValidCmd(decrypted);
|
uint8_t isOK = checkValidCmd(decrypted);
|
||||||
(void)isOK;
|
(void)isOK;
|
||||||
|
|
||||||
// Add a crc-check.
|
// Add a crc-check.
|
||||||
isOK = checkCRC(decrypted);
|
isOK = checkCRC(decrypted);
|
||||||
|
if (isOK == false) {
|
||||||
if (!isOK) {
|
|
||||||
printf("<-- not a valid cmd\n");
|
printf("<-- not a valid cmd\n");
|
||||||
pthread_mutex_unlock(&print_lock);
|
pthread_mutex_unlock(&print_lock);
|
||||||
free(revstate);
|
free(revstate);
|
||||||
|
@ -305,6 +303,8 @@ static void *brute_thread(void *arguments) {
|
||||||
pthread_mutex_unlock(&print_lock);
|
pthread_mutex_unlock(&print_lock);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (revstate)
|
||||||
|
free(revstate);
|
||||||
|
|
||||||
free(args);
|
free(args);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue