From 7fbcd6e920e09461536d6824659631d6d5f91030 Mon Sep 17 00:00:00 2001 From: Doug Engert Date: Wed, 12 Dec 2018 11:53:32 -0600 Subject: [PATCH] PIV - test i7e On branch piv-improved-matching Changes to be committed: modified: card-piv.c --- src/libopensc/card-piv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/card-piv.c b/src/libopensc/card-piv.c index 894a4c37..d5605088 100644 --- a/src/libopensc/card-piv.c +++ b/src/libopensc/card-piv.c @@ -3315,7 +3315,7 @@ static int piv_match_card_continued(sc_card_t *card) int i7e = piv_find_discovery(card); sc_debug(card->ctx,SC_LOG_DEBUG_MATCH, "PIV_MATCH card->type:%d i7e:%d CI:%08x r:%d\n", card->type, i7e, priv->card_issues, r); - if (i7e != 0) { + if (i7e < 0) { priv->card_issues |= CI_DISCOVERY_USELESS; priv->obj_cache[PIV_OBJ_DISCOVERY].flags |= PIV_OBJ_CACHE_NOT_PRESENT; }