1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

* import.c (import_one): Fix bug when importing a new key from a file.

This commit is contained in:
David Shaw 2006-05-22 21:38:13 +00:00
parent a26d0ff496
commit 3bee120e15
2 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,8 @@
2006-05-22 David Shaw <dshaw@jabberwocky.com>
* import.c (import_one): Fix bug when importing a new key from a
file.
* getkey.c (get_pubkey_byname), import.c (import_one): Fix key
selection problem when auto-key-locate returns a list of keys, not
all of which are usable (revoked, expired, etc). Noted by Simon

View File

@ -978,14 +978,12 @@ import_one( const char *fname, KBNODE keyblock, struct stats_s *stats,
}
else if(new_key)
{
if(fpr && stats->imported==1)
if(fpr)
{
xfree(*fpr);
if(stats->imported==1)
*fpr=fingerprint_from_pk(pk,NULL,fpr_len);
}
else
{
xfree(*fpr);
*fpr=NULL;
}