From 52b90d3d6b85cff6cb895fda0f9f2ca1a5f39eb2 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 18 Mar 2019 21:24:10 +0100 Subject: [PATCH] bad comparission --- client/cmdhflist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdhflist.c b/client/cmdhflist.c index 3c1fb83bd..504456a11 100644 --- a/client/cmdhflist.c +++ b/client/cmdhflist.c @@ -44,7 +44,7 @@ void ClearAuthData() { uint8_t iso14443A_CRC_check(bool isResponse, uint8_t *d, uint8_t n) { if (n < 3) return 2; - if (isResponse & (n < 6)) return 2; + if (isResponse && (n < 6)) return 2; return check_crc(CRC_14443_A, d, n); }