Skip to content

Commit

Permalink
minidriver.c - move logprintf into loop
Browse files Browse the repository at this point in the history
As suggested in OpenSC#3167 (comment)
  • Loading branch information
dengert authored and Jakuje committed Aug 16, 2024
1 parent d336324 commit 3b289b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/minidriver/minidriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1893,9 +1893,10 @@ md_set_cmapfile(PCARD_DATA pCardData, struct md_file *file)

/* set flag that at least one key that uses the sign key needs PinCacheAlwaysPrompt */
logprintf(pCardData, 7, "key_obj->user_consent: %d\n", (int) key_obj->user_consent);
if (key_obj->user_consent)
if (key_obj->user_consent) {
vs->need_pin_always = 1;
logprintf(pCardData, 7, "vs->need_pin_always %d\n", (int) vs->need_pin_always);
logprintf(pCardData, 7, "vs->need_pin_always %d\n", (int) vs->need_pin_always);
}

if (pin_mode < pin_mode_n) {
pin_mode = pin_mode_n;
Expand Down

0 comments on commit 3b289b1

Please sign in to comment.