1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

2003-09-22 Timo Schulz <twoaday@freakmail.de>

* card-util.c (card_status): Free pk in case of an error
        and return if the card is no OpenPGP card.
This commit is contained in:
Timo Schulz 2003-09-22 20:43:25 +00:00
parent 43c5c29bc1
commit 47959a306e
2 changed files with 8 additions and 0 deletions

View file

@ -216,6 +216,7 @@ card_status (FILE *fp)
{
log_error (_("OpenPGP card not available: %s\n"),
gpg_strerror (rc));
xfree (pk);
return;
}
@ -226,6 +227,8 @@ card_status (FILE *fp)
{
log_info ("not an OpenPGP card\n");
agent_release_card_info (&info);
xfree (pk);
return;
}
tty_fprintf (fp, "Version ..........: %.1s%c.%.1s%c\n",
info.serialno[12] == '0'?"":info.serialno+12,