mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Fixed some bugs in the selection code
This commit is contained in:
parent
2af87f8829
commit
4c316cb9b5
3 changed files with 19 additions and 2 deletions
|
@ -857,8 +857,10 @@ key_byname( GETKEY_CTX *retctx, STRLIST namelist,
|
|||
}
|
||||
}
|
||||
else {
|
||||
ctx->req_algo = pk->req_algo;
|
||||
ctx->req_usage = pk->req_usage;
|
||||
if (pk) {
|
||||
ctx->req_algo = pk->req_algo;
|
||||
ctx->req_usage = pk->req_usage;
|
||||
}
|
||||
rc = lookup( ctx, ret_kb, 0 );
|
||||
if ( !rc && pk ) {
|
||||
pk_from_block ( ctx, pk, *ret_kb, NULL /* FIXME need to get the namehash*/ );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue