Home GnuPG
Diffusion GnuPG a4a15195c2a3

gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c
a4a15195c2a3Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c

* g10/tdbio.c (lookup_hashtable): Return GPG_ERR_NOT_FOUND.
* g10/tdbdump.c (import_ownertrust): Test for GPG_ERR_NOT_FOUND.
* g10/trustdb.c (read_trust_record): Ditto.
(tdb_get_ownertrust, tdb_get_min_ownertrust): Ditto.
(tdb_update_ownertrust, update_min_ownertrust): Ditto.
(tdb_clear_ownertrusts, update_validity): Ditto.
(tdb_cache_disabled_value): Ditto.
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 4 2015, 6:08 PM
Parents
rGf170240ef735: gpg: Cleanup error code path in case of a bad trustdb.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGa4a15195c2a3: gpg: Replace -1 by GPG_ERR_NOT_FOUND in tdbio.c (authored by Werner Koch <wk@gnupg.org>).Jun 4 2015, 6:08 PM