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

* import.c (import_one): Make sure that a newly imported key starts with a

clean ownertrust.
This commit is contained in:
David Shaw 2002-10-01 17:32:06 +00:00
parent e85fd72317
commit 05691b1dce
2 changed files with 14 additions and 1 deletions

View file

@ -665,7 +665,15 @@ import_one( const char *fname, KBNODE keyblock,
log_error (_("error writing keyring `%s': %s\n"),
keydb_get_resource_name (hd), g10_errstr(rc));
else
revalidation_mark ();
{
/* This should not be possible since we delete the
ownertrust when a key is deleted, but it can happen if
the keyring and trustdb are out of sync. It can also
be made to happen with the trusted-key command. */
clear_ownertrust (pk);
revalidation_mark ();
}
keydb_release (hd);
/* we are ready */