mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-11 21:48:50 +01: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:
parent
43c5c29bc1
commit
47959a306e
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2003-09-18 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* g10.c: New command --card-edit.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user