aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-03-06 15:11:34 +0000
committerWerner Koch <[email protected]>2014-03-06 15:11:34 +0000
commit23191d7851eae2217ecdac6484349849a24fd94a (patch)
tree72ea693b4216ecc0729c4043fd0dcf2967ff1cbd
parentSupport building using the latest mingw-w64 toolchain. (diff)
downloadgnupg-23191d7851eae2217ecdac6484349849a24fd94a.tar.gz
gnupg-23191d7851eae2217ecdac6484349849a24fd94a.zip
gpg: Need to init the trustdb for import.
* g10/trustdb.c (clear_ownertrusts): Init trustdb. -- This is actually a hack to fix a bug introduced with commit 2528178. Debian uses it and thus we should do too. GnuPG-bug-id: 1622
-rw-r--r--g10/trustdb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c
index 0bf92e4b0..a54110653 100644
--- a/g10/trustdb.c
+++ b/g10/trustdb.c
@@ -927,6 +927,7 @@ clear_ownertrusts (PKT_public_key *pk)
TRUSTREC rec;
int rc;
+ init_trustdb ();
if (trustdb_args.no_trustdb && opt.trust_model == TM_ALWAYS)
return 0;