mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Need to init the trustdb for import.
* g10/trustdb.c (clear_ownertrusts): Init trustdb. -- This was fixed in 1.4 branch in commit23191d7851
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 commit2528178
. GnuPG-bug-id: 1622
This commit is contained in:
parent
d91db67e51
commit
07006c9916
1 changed files with 2 additions and 0 deletions
|
@ -923,6 +923,8 @@ clear_ownertrusts (PKT_public_key *pk)
|
||||||
TRUSTREC rec;
|
TRUSTREC rec;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
|
init_trustdb();
|
||||||
|
|
||||||
if (trustdb_args.no_trustdb && opt.trust_model == TM_ALWAYS)
|
if (trustdb_args.no_trustdb && opt.trust_model == TM_ALWAYS)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue