Home GnuPG
Diffusion GnuPG efd1ead9e779

g10: Don't cache search results if the search didn't scan the whole DB.
efd1ead9e779Unpublished

Unpublished Commit ยท Learn More

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

Description

g10: Don't cache search results if the search didn't scan the whole DB.

* g10/keydb.c (struct keydb_handle): Add new field is_reset.
(keydb_new): Initialize hd->is_reset to 1.
(keydb_locate_writable): Set hd->is_reset to 1.
(keydb_search): Set hd->is_reset to 0.  Don't cache a key not found if
the search started from the beginning of the database.
  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Aug 31 2015, 9:47 AM
Parents
rG11d8ffc939a4: g10: Have keydb_search_first call keydb_search_reset before searching.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rGefd1ead9e779: g10: Don't cache search results if the search didn't scan the whole DB. (authored by Neal H. Walfield <neal@g10code.com>).Aug 31 2015, 11:30 AM