mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
guard for last element
This commit is contained in:
@@ -1751,12 +1751,16 @@ typedef struct {
|
||||
} mfu_otp_identify_t;
|
||||
|
||||
static mfu_otp_identify_t mfu_otp_ident_table[] = {
|
||||
{ "SALTO Systems card", 12, 4, "534C544F", ul_c_otpgenA, "report to iceman!" }
|
||||
{ "SALTO Systems card", 12, 4, "534C544F", ul_c_otpgenA, "report to iceman!" },
|
||||
{ NULL, 0, 0, NULL , NULL, NULL} // must be the last item
|
||||
};
|
||||
|
||||
static mfu_otp_identify_t *mfu_match_otp_fingerprint(uint8_t *uid, uint8_t *data) {
|
||||
uint8_t i = 0;
|
||||
do {
|
||||
if ( mfu_otp_ident_table[i].desc == NULL) {
|
||||
break;
|
||||
}
|
||||
int ml = 0;
|
||||
uint8_t mtmp[40] = {0};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user