Home GnuPG
Diffusion GnuPG 3940f10af791

g10: Break out of the loop earlier.
3940f10af791Unpublished

Unpublished Commit ยท Learn More

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

Description

g10: Break out of the loop earlier.

* g10/getkey.c (have_secret_key_with_kid): Once we find the relevent
key or subkey, stop searching.

Only a single key or subkey will ever be selected per keyblock.

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

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Sep 15 2015, 3:21 PM
Parents
rG50affffe93a0: g10: Don't skip legacy keys if the search mode is KEYDB_SEARCH_MODE_NEXT
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG3940f10af791: g10: Break out of the loop earlier. (authored by Neal H. Walfield <neal@g10code.com>).Sep 16 2015, 3:15 PM