From 8b100bf1732167242dac4392f62b61a17c4215fa Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 4 May 2021 09:46:58 +0200 Subject: [PATCH] ..break it... --- client/src/cmdhficlass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index 9d98e534d..f9882d24d 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -3070,7 +3070,8 @@ static int CmdHFiClassCheckKeys(const char *Cmd) { uint32_t tmp_plen = sizeof(iclass_chk_t) + (4 * curr_chunk_cnt); iclass_chk_t *packet = calloc(tmp_plen, sizeof(uint8_t) ); if (packet == NULL) { - + PrintAndLogEx(WARNING, "failed to allocate memory"); + break; } packet->use_credit_key = use_credit_key; packet->count = curr_chunk_cnt;