diff options
author | Werner Koch <[email protected]> | 1998-03-03 08:43:28 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1998-03-03 08:43:28 +0000 |
commit | 0eb5aa6cfd145ececede8e5c6ed34f8bc9674830 (patch) | |
tree | e43b97086562b6414382b045d0221e25b243a43a /g10/trustdb.c | |
parent | bug fixes (diff) | |
download | gnupg-0eb5aa6cfd145ececede8e5c6ed34f8bc9674830.tar.gz gnupg-0eb5aa6cfd145ececede8e5c6ed34f8bc9674830.zip |
v0.2.11
Diffstat (limited to '')
-rw-r--r-- | g10/trustdb.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c index 3554c6e5a..9f06bca92 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -1421,12 +1421,9 @@ do_check( ulong pubkeyid, TRUSTREC *dr, unsigned *trustlevel ) if( !rc && !dr->r.dir.sigrec ) { /* See wether this is our own key */ - if( !qry_lid_table_flag( ultikey_table, pubkeyid, NULL ) ) { + if( !qry_lid_table_flag( ultikey_table, pubkeyid, NULL ) ) *trustlevel = tflags | TRUST_ULTIMATE; - return 0; - } - else - rc = -1; + return 0; } if( rc ) return rc; /* error while looking for sigrec or building sigrecs */ @@ -1774,8 +1771,8 @@ enum_trust_web( void **context, ulong *lid ) if( !c ) { /* make a new context */ c = m_alloc_clear( sizeof *c ); *context = c; - if( *lid != last_trust_web_key ) - log_bug("enum_trust_web: nyi\n"); + if( *lid != last_trust_web_key && last_trust_web_key ) + log_bug("enum_trust_web: nyi\n"); /* <--- FIXME */ c->tsl = last_trust_web_tslist; c->index = 1; } |