summaryrefslogtreecommitdiffstats
path: root/g10/tdbdump.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2018-03-26 18:06:43 +0200
committerWerner Koch <wk@gnupg.org>2018-03-26 18:06:43 +0200
commita750ebebf35a392f1c72d6aee5618df0d9f25ff7 (patch)
treec0c1f70d6b0e435b5284db49bae02f5b6425335a /g10/tdbdump.c
parentgpg: Return better error codes in case of a too short trustdb. (diff)
downloadgnupg2-a750ebebf35a392f1c72d6aee5618df0d9f25ff7.tar.xz
gnupg2-a750ebebf35a392f1c72d6aee5618df0d9f25ff7.zip
gpg: Pass CTRL arg to get_trusthashrec.
* g10/tdbio.c (get_trusthashrec): Add arg CTRL. (tdbio_search_trust_byfpr): Ditto. (tdbio_search_trust_bypk): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/tdbdump.c')
-rw-r--r--g10/tdbdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/tdbdump.c b/g10/tdbdump.c
index 5ea903f45..2c6f5c2fa 100644
--- a/g10/tdbdump.c
+++ b/g10/tdbdump.c
@@ -189,7 +189,7 @@ import_ownertrust (ctrl_t ctrl, const char *fname )
while (fprlen < 20)
fpr[fprlen++] = 0;
- rc = tdbio_search_trust_byfpr (fpr, &rec);
+ rc = tdbio_search_trust_byfpr (ctrl, fpr, &rec);
if( !rc ) { /* found: update */
if (rec.r.trust.ownertrust != otrust)
{