From a450b3427efb57f03cb0c4d33d336b6ba6ce2d7c Mon Sep 17 00:00:00 2001 From: dojo Date: Wed, 4 Dec 2019 12:57:15 +0100 Subject: [PATCH] Fix path unifying of StarCOS 3.5 cards --- src/libopensc/card-starcos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/card-starcos.c b/src/libopensc/card-starcos.c index 95391081..9025b82f 100644 --- a/src/libopensc/card-starcos.c +++ b/src/libopensc/card-starcos.c @@ -884,7 +884,7 @@ static int starcos_select_file(sc_card_t *card, SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_VERBOSE, SC_ERROR_INVALID_ARGUMENTS); if (card->type != SC_CARD_TYPE_STARCOS_V3_4 - || card->type == SC_CARD_TYPE_STARCOS_V3_5) { + && card->type != SC_CARD_TYPE_STARCOS_V3_5) { /* unify path (the first FID should be MF) */ if (path[0] != 0x3f || path[1] != 0x00) {