aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-card.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpg-card.c')
-rw-r--r--tools/gpg-card.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gpg-card.c b/tools/gpg-card.c
index be6929c3a..9257bc78f 100644
--- a/tools/gpg-card.c
+++ b/tools/gpg-card.c
@@ -836,8 +836,10 @@ list_retry_counter (card_info_t info, estream_t fp)
const char *s;
int i;
+ if (info->chvlabels)
+ tty_fprintf (fp, "PIN labels .......: %s\n", info->chvlabels);
tty_fprintf (fp, "PIN retry counter :");
- for (i=0; i < DIM (info->chvinfo); i++)
+ for (i=0; i < DIM (info->chvinfo) && i < info->nchvinfo; i++)
{
if (info->chvinfo[i] >= 0)
tty_fprintf (fp, " %d", info->chvinfo[i]);