aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/import.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/g10/import.c b/g10/import.c
index 81aa506a4..97d4b8f39 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -978,15 +978,13 @@ import_one( const char *fname, KBNODE keyblock, struct stats_s *stats,
}
else if(new_key)
{
- if(fpr && stats->imported==1)
+ if(fpr)
{
xfree(*fpr);
- *fpr=fingerprint_from_pk(pk,NULL,fpr_len);
- }
- else
- {
- xfree(*fpr);
- *fpr=NULL;
+ if(stats->imported==1)
+ *fpr=fingerprint_from_pk(pk,NULL,fpr_len);
+ else
+ *fpr=NULL;
}
revocation_present(keyblock);