aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbdump.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-03-12 15:00:55 +0000
committerWerner Koch <[email protected]>2024-03-12 15:00:55 +0000
commit4485930f9fd9ff02ca5c8472cf6aed3fdb1280cf (patch)
tree683140a4a33b0f3accf5b1f2455274d251581970 /g10/tdbdump.c
parentgpg: Fix a possible segv due to an uninitialized gcrypt context. (diff)
parentPost release updates (diff)
downloadgnupg-4485930f9fd9ff02ca5c8472cf6aed3fdb1280cf.tar.gz
gnupg-4485930f9fd9ff02ca5c8472cf6aed3fdb1280cf.zip
Merge branch 'STABLE-BRANCH-2-4'
-- Resolved conflicts: NEWS common/exechelp-w32.c configure.ac
Diffstat (limited to 'g10/tdbdump.c')
-rw-r--r--g10/tdbdump.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/g10/tdbdump.c b/g10/tdbdump.c
index 9ff3f81a3..99f135678 100644
--- a/g10/tdbdump.c
+++ b/g10/tdbdump.c
@@ -190,7 +190,11 @@ import_ownertrust (ctrl_t ctrl, const char *fname )
while (fprlen < MAX_FINGERPRINT_LEN)
fpr[fprlen++] = 0;
- rc = tdbio_search_trust_byfpr (ctrl, fpr, &rec);
+ /* FIXME: The intention is to save the special fpr20 as used
+ * in the trustdb here. However, the above conversions seems
+ * not to be aware of this. Or why does it allow up to
+ * MAX_FINGERPRINT_LEN ? */
+ rc = tdbio_search_trust_byfpr (ctrl, fpr, 20, &rec);
if( !rc ) { /* found: update */
if (rec.r.trust.ownertrust != otrust)
{