From a77ce27a68fbf1ae7f205a2996bb4f9cc0542ab5 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 30 Sep 2020 20:09:50 +0200 Subject: [PATCH] coverity 303144 --- client/src/cmdhf14b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdhf14b.c b/client/src/cmdhf14b.c index 6ae6ac15a..9eca2fc06 100644 --- a/client/src/cmdhf14b.c +++ b/client/src/cmdhf14b.c @@ -1369,7 +1369,7 @@ static int handle_14b_apdu(bool chainingin, uint8_t *datain, int datainlen, bool } // check apdu length - if (rlen == 0 && rlen == 1) { + if (rlen == 0 || rlen == 1) { PrintAndLogEx(ERR, "APDU: Small APDU response. Len=%d", rlen); return PM3_ESOFT; }