mirror of
git://git.gnupg.org/gnupg.git
synced 2024-11-04 20:38:50 +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.
--
Backported from f2ee673c99
. Note:
unlike in 2.1, in 2.0 this bug is not (currently) triggered since
parse_auto_key_locate doesn't recognize "clear".
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
Reported-by: Sami Farin.
GnuPG-bug-id: 2045
This commit is contained in:
parent
022719695e
commit
376417ab63
@ -3098,6 +3098,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…
Reference in New Issue
Block a user