aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-07-16 07:57:27 +0000
committerNeal H. Walfield <[email protected]>2015-07-16 07:57:41 +0000
commitf2ee673c99825d5189631031ddec2dbf54dbd482 (patch)
treef517fac1f059a516658e04f3199d4e93a43fa26a
parentagent: Support non-NLS build. (diff)
downloadgnupg-f2ee673c99825d5189631031ddec2dbf54dbd482.tar.gz
gnupg-f2ee673c99825d5189631031ddec2dbf54dbd482.zip
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 <[email protected]>. Reported-by: Sami Farin. GnuPG-bug-id: 2045
Diffstat (limited to '')
-rw-r--r--g10/getkey.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index e450c5655..5f118ea7d 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -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);