1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-08 23:37:47 +02:00

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
This commit is contained in:
Werner Koch 2014-03-06 16:11:34 +01:00
parent 24ba0ce932
commit 23191d7851

View File

@ -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;