gpg: Fix testing for secret key availability.
authorWerner Koch <wk@gnupg.org>
Fri, 31 Oct 2014 08:22:47 +0000 (09:22 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 31 Oct 2014 08:22:47 +0000 (09:22 +0100)
commit433208a5536608c2b40525eebadbbdeb7780d7f2
tree22d0ce2a9792b91a938d1d39a622a80897a3a6c5
parentcb46e32628de9c2a764b19ef092d4f504c948bd0
gpg: Fix testing for secret key availability.

* g10/getkey.c (have_secret_key_with_kid): Do not change the search
mode.
--

The search mode was accidentally changed to search-next after finding
the first keyblock.  The intention was to look for a duplicate keyid
in the keydb which works by not doing a keydb_search_reset.

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/getkey.c