From df0d5617ac2a078f26c164dfa13b04b80e88807b Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Wed, 4 Aug 2021 18:49:36 +0300 Subject: [PATCH] ev2 plain comes wo mac --- client/src/mifare/desfiresecurechan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/mifare/desfiresecurechan.c b/client/src/mifare/desfiresecurechan.c index e98e09a20..57306c1c2 100644 --- a/client/src/mifare/desfiresecurechan.c +++ b/client/src/mifare/desfiresecurechan.c @@ -465,7 +465,7 @@ static void DesfireSecureChannelDecodeEV2(DesfireContext *ctx, uint8_t *srcdata, // if comm mode = plain --> response with MAC // if request is not zero length --> response MAC - if (ctx->commMode == DCMPlain || ctx->commMode == DCMMACed) { + if (ctx->commMode == DCMMACed) { if (srcdatalen < DesfireGetMACLength(ctx)) { memcpy(dstdata, srcdata, srcdatalen); *dstdatalen = srcdatalen;