diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2024-12-16 01:56:24 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2024-12-16 01:56:24 +0100 |
commit | aa36f6ae8bae13b75ba28761ed215f48333f06b9 (patch) | |
tree | ba80ab35da36445ff4b1a23dfadf90c53b66950f /g10 | |
parent | gpg: Allow for longer signature subpackets. (diff) | |
download | gnupg2-aa36f6ae8bae13b75ba28761ed215f48333f06b9.tar.xz gnupg2-aa36f6ae8bae13b75ba28761ed215f48333f06b9.zip |
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>
Diffstat (limited to 'g10')
-rw-r--r-- | g10/keygen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keygen.c b/g10/keygen.c index a0cfb5c83..ad5acbedc 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -2784,7 +2784,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); |