1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19: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:
NIIBE Yutaka 2024-12-16 09:56:24 +09:00
parent 36dbca3e69
commit aa36f6ae8b
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054

View File

@ -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);