aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <[email protected]>2015-10-21 11:36:12 +0000
committerNeal H. Walfield <[email protected]>2015-10-21 11:45:49 +0000
commit8c3b7915d675ca5346c17244654d5c6ab583ac44 (patch)
tree319e1965ee769990766f55b386589fa785d8aa68
parentgpg: When evaluating trust reg exps, treat tofu+pgp like pgp. (diff)
downloadgnupg-8c3b7915d675ca5346c17244654d5c6ab583ac44.tar.gz
gnupg-8c3b7915d675ca5346c17244654d5c6ab583ac44.zip
gpg: Don't accidentally free UTK_LIST.
* g10/trustdb.c (validate_keys): Don't free UTK_LIST. -- Signed-off-by: Neal H. Walfield <[email protected]>
-rw-r--r--g10/trustdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 022131a33..e2f193526 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -2097,7 +2097,8 @@ validate_keys (int interactive)
leave:
keydb_release (kdb);
release_key_array (keys);
- release_key_items (klist);
+ if (klist != utk_list)
+ release_key_items (klist);
release_key_hash_table (full_trust);
release_key_hash_table (used);
release_key_hash_table (stored);