Home GnuPG
Diffusion GnuPG 433208a55366

gpg: Fix testing for secret key availability.
433208a55366Unpublished

Unpublished Commit · Learn More

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

Description

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>

Details

Provenance
wernerAuthored on Oct 31 2014, 9:22 AM
Parents
rGcb46e32628de: gpg: Remove commented code.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG433208a55366: gpg: Fix testing for secret key availability. (authored by Werner Koch <wk@gnupg.org>).Oct 31 2014, 9:22 AM