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 7f38bbc86..3dc2ded07 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -638,7 +638,7 @@ get_ownertrust_with_min (PKT_public_key *pk)
{
unsigned int otrust,otrust_min;
- otrust = get_ownertrust (pk);
+ otrust = (get_ownertrust (pk) & TRUST_MASK);
otrust_min = get_min_ownertrust (pk);
if(otrust<otrust_min)
{
@@ -2004,7 +2004,8 @@ validate_keys (int interactive)
k->kid[0]=kid[0];
k->kid[1]=kid[1];
k->ownertrust =
- get_ownertrust (kar->keyblock->pkt->pkt.public_key);
+ (get_ownertrust (kar->keyblock->pkt->pkt.public_key)
+ & TRUST_MASK);
k->min_ownertrust =
get_min_ownertrust(kar->keyblock->pkt->pkt.public_key);
k->trust_depth=
@@ -2056,5 +2057,6 @@ validate_keys (int interactive)
do_sync ();
pending_check_trustdb = 0;
}
+
return rc;
}