mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-21 10:09:57 +01:00
gpg: Fix key generation with existing key from card.
* g10/keygen.c (ask_algo): Fix condition. Continue the loop when failure. -- Fixes-commit: e7891225788ab5f6d050a06643b1f488c227771f GnuPG-bug-id: 7309, 7457 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
36dbca3e69
commit
aa36f6ae8b
@ -2784,7 +2784,7 @@ ask_algo (ctrl_t ctrl, int addmode, int *r_subkey_algo, unsigned int *r_usage,
|
|||||||
if (!keyref)
|
if (!keyref)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!agent_scd_readkey (ctrl, keyref, &s_pkey, NULL))
|
if (agent_scd_readkey (ctrl, keyref, &s_pkey, NULL))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
algostr = pubkey_algo_string (s_pkey, &algoid);
|
algostr = pubkey_algo_string (s_pkey, &algoid);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user