* 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

@ -1,3 +1,8 @@
2002-10-01 David Shaw <dshaw@jabberwocky.com>
* import.c (import_one): Make sure that a newly imported key
starts with a clean ownertrust.
2002-10-01 Werner Koch <wk@gnupg.org>
* getkey.c (get_pubkey_direct): New.

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 */