diff --git a/src/libopensc/card-starcos.c b/src/libopensc/card-starcos.c index 27a0692e..6218ad55 100644 --- a/src/libopensc/card-starcos.c +++ b/src/libopensc/card-starcos.c @@ -697,8 +697,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 - || (pathlen == 0 && card->cache.current_path.type != SC_PATH_TYPE_DF_NAME)) { + || card->type == SC_CARD_TYPE_STARCOS_V3_5) { /* unify path (the first FID should be MF) */ if (path[0] != 0x3f || path[1] != 0x00) {