diff options
author | Neal H. Walfield <[email protected]> | 2015-08-31 07:47:58 +0000 |
---|---|---|
committer | Neal H. Walfield <[email protected]> | 2015-08-31 09:30:55 +0000 |
commit | efd1ead9e779eb3bd37384258e08ad921a934612 (patch) | |
tree | 90c455b3f9c80e5d0a0aca8dc59a2d7299641b68 /common/utf8conv.c | |
parent | g10: Have keydb_search_first call keydb_search_reset before searching. (diff) | |
download | gnupg-efd1ead9e779eb3bd37384258e08ad921a934612.tar.gz gnupg-efd1ead9e779eb3bd37384258e08ad921a934612.zip |
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 <[email protected]>.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions