Don't segfault if the first 'auto-key-locate' option is 'clear'.
authorNeal H. Walfield <neal@g10code.com>
Thu, 16 Jul 2015 07:57:27 +0000 (09:57 +0200)
committerNeal H. Walfield <neal@gnu.org>
Thu, 16 Jul 2015 09:36:31 +0000 (11:36 +0200)
commit376417ab63ebb0fd2432ddc0ee1db722ffa1d3d2
tree17cd1b5f2b0030f18a0e1983695bd9c6b320c4a7
parent022719695e3900005d78564dfe4b2154fe0537a5
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 f2ee673c99825d5189631031ddec2dbf54dbd482.  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
g10/getkey.c