aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-12-02 16:04:58 +0000
committerWerner Koch <[email protected]>2011-12-02 16:04:58 +0000
commit96dc146fa17a7853277dbf3dc771c585a815c247 (patch)
treec010dd7821a406806666d47f0ab5b12519885f54
parentFix pinpad input support for passphrase modification. (diff)
downloadgnupg-96dc146fa17a7853277dbf3dc771c585a815c247.tar.gz
gnupg-96dc146fa17a7853277dbf3dc771c585a815c247.zip
Avoid possible double free in export.c.
* g10/export.c (transfer_format_to_openpgp): Avoid possible double free of LIST. Reported by NIIBE Yutaka.
-rw-r--r--g10/export.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/export.c b/g10/export.c
index 7deee6b02..9a348523b 100644
--- a/g10/export.c
+++ b/g10/export.c
@@ -507,7 +507,7 @@ transfer_format_to_openpgp (gcry_sexp_t s_pgp, PKT_public_key *pk)
}
skey[skeyidx++] = NULL;
- gcry_sexp_release (list);
+ gcry_sexp_release (list); list = NULL;
/* We have no need for the CSUM valuel thus we don't parse it. */
/* list = gcry_sexp_find_token (top_list, "csum", 0); */