mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
gpg: Fix segv importing certain keys.
* g10/key-check.c (key_check_all_keysigs): Initialize issuer. -- Fixes-commit: 404fa8211b6188a0abe83ef43a4b44d528c0b035 from 2017 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
0a9665187a
commit
896c528ba0
@ -367,8 +367,11 @@ key_check_all_keysigs (ctrl_t ctrl, int mode, kbnode_t kb,
|
|||||||
if (only_selfsigs)
|
if (only_selfsigs)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
issuer = xmalloc (sizeof (*issuer));
|
issuer = xtrycalloc (1, sizeof *issuer);
|
||||||
err = get_pubkey (ctrl, issuer, sig->keyid);
|
if (!issuer)
|
||||||
|
err = gpg_error_from_syserror ();
|
||||||
|
else
|
||||||
|
err = get_pubkey (ctrl, issuer, sig->keyid);
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
xfree (issuer);
|
xfree (issuer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user