coverity 303144
This commit is contained in:
1 parent
4b8117cdb2
commit
a77ce27a68
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user