mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-14 21:47:19 +02:00
gpg: Fix key generation with existing key from card.
* g10/keygen.c (ask_algo): Fix condition. Continue the loop when
failure.
--
Fixes-commit: 6022f10da3
GnuPG-bug-id: 7309, 7457
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
4be25979a6
commit
cc3efe9a73
2 changed files with 4 additions and 1 deletions
3
NEWS
3
NEWS
|
@ -4,6 +4,9 @@ Noteworthy changes in version 2.4.8 (unreleased)
|
|||
* gpg: Fix a verification DoS due to a malicious subkey in the
|
||||
keyring. [T7527]
|
||||
|
||||
* gpg: Fix a regression in 2.4.7 for generating a key from card.
|
||||
[T7457]
|
||||
|
||||
Release-info: https://dev.gnupg.org/T7428
|
||||
|
||||
|
||||
|
|
|
@ -2515,7 +2515,7 @@ ask_algo (ctrl_t ctrl, int addmode, int *r_subkey_algo, unsigned int *r_usage,
|
|||
if (!keyref)
|
||||
continue;
|
||||
|
||||
if (!agent_scd_readkey (ctrl, keyref, &s_pkey, NULL))
|
||||
if (agent_scd_readkey (ctrl, keyref, &s_pkey, NULL))
|
||||
continue;
|
||||
|
||||
algostr = pubkey_algo_string (s_pkey, &algoid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue