diff options
author | Kristian Fiskerstrand <[email protected]> | 2014-08-13 09:13:34 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-09-03 07:46:30 +0000 |
commit | 07006c9916ea194ce6047d252421c08489068c4c (patch) | |
tree | 2094e776311fb49f6788e479b7212ac0ca850387 | |
parent | build: Print an error message if zlib is not installed. (diff) | |
download | gnupg-07006c9916ea194ce6047d252421c08489068c4c.tar.gz gnupg-07006c9916ea194ce6047d252421c08489068c4c.zip |
gpg: Need to init the trustdb for import.
* g10/trustdb.c (clear_ownertrusts): Init trustdb.
--
This was fixed in 1.4 branch in commit
23191d7851eae2217ecdac6484349849a24fd94a but was not applied to the
2.0 branch that exhibits the same problem. This is actually a hack
to fix a bug introduced with commit 2528178.
GnuPG-bug-id: 1622
-rw-r--r-- | g10/trustdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/trustdb.c b/g10/trustdb.c index f96701a3c..7bfef2564 100644 --- a/g10/trustdb.c +++ b/g10/trustdb.c @@ -923,6 +923,8 @@ clear_ownertrusts (PKT_public_key *pk) TRUSTREC rec; int rc; + init_trustdb(); + if (trustdb_args.no_trustdb && opt.trust_model == TM_ALWAYS) return 0; |