diff --git a/src/libopensc/pkcs15-pin.c b/src/libopensc/pkcs15-pin.c index 6f0239bd..3043bdda 100644 --- a/src/libopensc/pkcs15-pin.c +++ b/src/libopensc/pkcs15-pin.c @@ -358,7 +358,7 @@ int sc_pkcs15_verify_pin(struct sc_pkcs15_card *p15card, LOG_TEST_RET(ctx, r, "sc_lock() failed"); /* the path in the pin object is optional */ - if (auth_info->path.len > 0) { + if ((auth_info->path.len > 0) || ((auth_info->path.aid.len > 0))) { r = sc_select_file(card, &auth_info->path, NULL); if (r) goto out;