mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Fix for bug#1034.
This commit is contained in:
parent
418e61a824
commit
23ad4bd73b
4 changed files with 38 additions and 34 deletions
12
g10/getkey.c
12
g10/getkey.c
|
@ -2541,17 +2541,7 @@ finish_lookup (GETKEY_CTX ctx)
|
|||
latest_key = foundk? foundk:keyblock;
|
||||
goto found;
|
||||
}
|
||||
|
||||
if (!req_usage) {
|
||||
PKT_public_key *pk = foundk->pkt->pkt.public_key;
|
||||
if (pk->user_id)
|
||||
free_user_id (pk->user_id);
|
||||
pk->user_id = scopy_user_id (foundu);
|
||||
ctx->found_key = foundk;
|
||||
cache_user_id( keyblock );
|
||||
return 1; /* found */
|
||||
}
|
||||
|
||||
|
||||
latest_date = 0;
|
||||
latest_key = NULL;
|
||||
/* do not look at subkeys if a certification key is requested */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue