From c76c59a35c2d21f05f75620418ed93b8f2e927da Mon Sep 17 00:00:00 2001 From: Thomas Sutter Date: Sat, 2 Nov 2019 13:29:38 +0100 Subject: [PATCH] Fix segmentation fault in cmd. --- client/cmdhffelica.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/cmdhffelica.c b/client/cmdhffelica.c index 03bd390c2..d1714c3a0 100644 --- a/client/cmdhffelica.c +++ b/client/cmdhffelica.c @@ -246,6 +246,7 @@ static bool waitCmdFelica(uint8_t iSelect, PacketResponseNG *resp, bool verbose) PrintAndLogEx(NORMAL, "Client Received %i octets", len); if (!len || len < 2) { PrintAndLogEx(ERR, "Could not receive data correctly!"); + return false; } PrintAndLogEx(NORMAL, "%s", sprint_hex(resp->data.asBytes, len)); if (!check_crc(CRC_FELICA, resp->data.asBytes + 2, len - 2)) {