diff options
author | Werner Koch <[email protected]> | 2014-03-06 15:11:34 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-03-06 15:11:34 +0000 |
commit | 23191d7851eae2217ecdac6484349849a24fd94a (patch) | |
tree | 72ea693b4216ecc0729c4043fd0dcf2967ff1cbd | |
parent | Support building using the latest mingw-w64 toolchain. (diff) | |
download | gnupg-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.c | 1 |
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; |