g10: Fix iteration over getkey results.
authorJustus Winter <justus@g10code.com>
Mon, 28 Nov 2016 12:36:56 +0000 (13:36 +0100)
committerJustus Winter <justus@g10code.com>
Mon, 28 Nov 2016 12:48:19 +0000 (13:48 +0100)
commit4db9a425644dccaf81b51ebc97b32a9cc21941a4
treefb5be0072f64b9b85811271428141829f711e8aa
parentcc1d21342659a7def5d662d0547579f9e0d3b109
g10: Fix iteration over getkey results.

* g10/getkey.c (getkey_next): Only ask 'lookup' for the exact match if
our caller requested the key.  Fixes a crash in 'lookup'.

GnuPG-bug-id: 2848
Fixes-commit: 1d03cc77e1706f7da653153ad4b58c61e4fd2573
Signed-off-by: Justus Winter <justus@g10code.com>
g10/getkey.c