aboutsummaryrefslogtreecommitdiffstats
path: root/g10/trustdb.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/trustdb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index e0e29f1d9..7f38bbc86 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -425,7 +425,8 @@ init_trustdb()
if( rc )
log_fatal("can't init trustdb: %s\n", g10_errstr(rc) );
- if(!tdbio_db_matches_options())
+ if(!tdbio_db_matches_options()
+ && (opt.trust_model==TM_CLASSIC || opt.trust_model==TM_OPENPGP))
pending_check_trustdb=1;
}
@@ -971,7 +972,8 @@ get_validity (PKT_public_key *pk, PKT_user_id *uid)
namehash_from_uid(uid);
init_trustdb ();
- if (!did_nextcheck)
+ if (!did_nextcheck
+ && (opt.trust_model==TM_CLASSIC || opt.trust_model==TM_OPENPGP))
{
ulong scheduled;