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:
Neal H. Walfield 2015-07-16 09:57:27 +02:00
parent b3286af36d
commit f2ee673c99
1 changed files with 3 additions and 0 deletions

View File

@ -2923,6 +2923,9 @@ get_ctx_handle (GETKEY_CTX ctx)
static void
free_akl (struct akl *akl)
{
if (! akl)
return;
if (akl->spec)
free_keyserver_spec (akl->spec);