g10: Fix iteration over getkey results.
authorJustus Winter <justus@g10code.com>
Tue, 15 Nov 2016 14:08:54 +0000 (15:08 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 15 Nov 2016 14:38:09 +0000 (15:38 +0100)
commit1d03cc77e1706f7da653153ad4b58c61e4fd2573
tree18792f056c00b2343d6c8b82c7a5833760b41cfd
parentbd60742925414e0ef2a497df827c1913ea211a44
g10: Fix iteration over getkey results.

* g10/getkey.c (getkey_next): Fix invocation of 'lookup'.  If we want
to use RET_FOUND_KEY, RET_KEYBLOCK must be valid.

Fixes-commit: 8ea72a776a88f3c851e812d258355be80caa1bc1
Signed-off-by: Justus Winter <justus@g10code.com>
g10/getkey.c