Home GnuPG
Diffusion GnuPG 11d8ffc939a4

g10: Have keydb_search_first call keydb_search_reset before searching.
11d8ffc939a4Unpublished

Unpublished Commit ยท Learn More

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

Description

g10: Have keydb_search_first call keydb_search_reset before searching.

* g10/keydb.c (keydb_search_first): Reset the handle before starting
the search.

This bug hasn't shown up yet in practice, because keydb_search_first
is always called immediately after a keydb_new. This changes cleans
up the semantics and will hopefully prevent future bugs.

  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Aug 31 2015, 9:22 AM
Parents
rG0377db4b3581: g10: Remove unused parameter.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG11d8ffc939a4: g10: Have keydb_search_first call keydb_search_reset before searching. (authored by Neal H. Walfield <neal@g10code.com>).Aug 31 2015, 11:30 AM