mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-22 14:57:02 +01:00
Don't segfault if the first 'auto-key-locate' option is 'clear'.
* g10/getkey.c (free_akl): If AKL is NULL, just return. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>. Reported-by: Sami Farin. GnuPG-bug-id: 2045
This commit is contained in:
parent
b3286af36d
commit
f2ee673c99
@ -2923,6 +2923,9 @@ get_ctx_handle (GETKEY_CTX ctx)
|
|||||||
static void
|
static void
|
||||||
free_akl (struct akl *akl)
|
free_akl (struct akl *akl)
|
||||||
{
|
{
|
||||||
|
if (! akl)
|
||||||
|
return;
|
||||||
|
|
||||||
if (akl->spec)
|
if (akl->spec)
|
||||||
free_keyserver_spec (akl->spec);
|
free_keyserver_spec (akl->spec);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user