mirror of
git://git.gnupg.org/gnupg.git
synced 2025-05-24 16:43:28 +02:00
gpg: Fix endless loop for expired keys given by fpr.
* g10/getkey.c (lookup): Disable keydb caching when continuing a search. -- Caches are Fierce Creatures. Reported-by: Patrick Brunschwig
This commit is contained in:
parent
23d8609f4b
commit
328a6b6459
@ -2621,6 +2621,11 @@ lookup (getkey_ctx_t ctx, kbnode_t *ret_keyblock, int want_secret)
|
|||||||
/* Release resources and continue search. */
|
/* Release resources and continue search. */
|
||||||
release_kbnode (ctx->keyblock);
|
release_kbnode (ctx->keyblock);
|
||||||
ctx->keyblock = NULL;
|
ctx->keyblock = NULL;
|
||||||
|
/* We need to disable the caching so that for an exact key search we
|
||||||
|
won't get the result back from the cache and thus end up in an
|
||||||
|
endless loop. Disabling this here is sufficient because although
|
||||||
|
the result may have been cached, if won't be used then. */
|
||||||
|
keydb_disable_caching (ctx->kr_handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
found:
|
found:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user