g10: Have keydb_search_first call keydb_search_reset before searching.
authorNeal H. Walfield <neal@g10code.com>
Mon, 31 Aug 2015 07:22:23 +0000 (09:22 +0200)
committerNeal H. Walfield <neal@g10code.com>
Mon, 31 Aug 2015 09:30:55 +0000 (11:30 +0200)
commit11d8ffc939a4d20cfb0082b2d966b1e1a7d61f8d
tree095c32e08491c0a2f8db73c35385137d0baa7ecf
parent0377db4b3581561b1ffc5bb7c3b4d698e8993b3a
g10: Have keydb_search_first call keydb_search_reset before searching.

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

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
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.
g10/keydb.c