diff options
Diffstat (limited to 'g10/trustdb.c')
-rw-r--r-- | g10/trustdb.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c index cc94ad8e1..642d1b5e9 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -1617,6 +1617,11 @@ check_trust( PKT_public_key *pk, unsigned *r_trustlevel ) } log_info(_("key %08lX.%lu: inserted into trustdb\n"), keyid[1], pk->local_id ); + /* and re-read the dir record */ + if( tdbio_read_record( pk->local_id, &rec, RECTYPE_DIR ) ) { + log_error("check_trust: reread dir record failed\n"); + return G10ERR_TRUSTDB; + } } } cur_time = make_timestamp(); |