gpg: Fix NULL de-ref for ambiguous key check in --export-ssh-keys.
authorWerner Koch <wk@gnupg.org>
Mon, 11 Jan 2016 09:59:13 +0000 (10:59 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 11 Jan 2016 09:59:13 +0000 (10:59 +0100)
commitb280aa6423c9492e8c5a9afa57339d06d957996d
treeb17b106eaed7c67bf284d0fe0cad309025fe69df
parenteb9c021631174fde4c1c444bbc533a7a46d570cd
gpg: Fix NULL de-ref for ambiguous key check in --export-ssh-keys.

* g10/getkey.c: Allow arg RET_KEYBLOCK to be NULL.
--

This change adds the expected behavior for the getkey_next function
to fix this NULL de-ref.

GnuPG-bug-id: 2212
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/getkey.c
g10/keydb.h