aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keydb.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2014-12-01 10:54:51 +0000
committerWerner Koch <[email protected]>2014-12-01 10:54:51 +0000
commitf1c3eb4b16ca43b5d3712a3b54c22d17ce85af47 (patch)
tree182e124446ae81899880017c1dbeaac5579c114a /g10/keydb.c
parentscd: Implement socket redirection. (diff)
downloadgnupg-f1c3eb4b16ca43b5d3712a3b54c22d17ce85af47.tar.gz
gnupg-f1c3eb4b16ca43b5d3712a3b54c22d17ce85af47.zip
gpg: Fix export bug using exact search with only one key in the keybox.
* g10/export.c (do_export_stream): Disable caching. * g10/keyserver.c (keyidlist): Ditto. -- GnuPG-bug-id: 1774
Diffstat (limited to '')
-rw-r--r--g10/keydb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/keydb.c b/g10/keydb.c
index bafae18a1..a578c7cb7 100644
--- a/g10/keydb.c
+++ b/g10/keydb.c
@@ -1424,6 +1424,9 @@ keydb_search (KEYDB_HANDLE hd, KEYDB_SEARCH_DESC *desc,
if (DBG_CACHE)
dump_search_desc (hd, "keydb_search", desc, ndesc);
+ /* NB: If one of the exact search modes below is used in a loop to
+ walk over all keys (with the same fingerprint) the caching must
+ have been disabled for the handle. */
if (!hd->no_caching
&& ndesc == 1
&& (desc[0].mode == KEYDB_SEARCH_MODE_FPR20