mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
(do_generate_keypair): Don't continue after an error;
fixed at two places. Why at all didn't I used a goto to cleanup, tsss?
This commit is contained in:
parent
aa87314e6f
commit
aa62bf505d
2 changed files with 7 additions and 3 deletions
|
@ -2820,7 +2820,7 @@ do_generate_keypair( struct para_data_s *para,
|
|||
get_parameter_uint (para, pKEYUSAGE));
|
||||
}
|
||||
|
||||
if( get_parameter( para, pSUBKEYTYPE ) )
|
||||
if( !rc && get_parameter( para, pSUBKEYTYPE ) )
|
||||
{
|
||||
if (!card)
|
||||
{
|
||||
|
@ -2859,7 +2859,7 @@ do_generate_keypair( struct para_data_s *para,
|
|||
did_sub = 1;
|
||||
}
|
||||
|
||||
if (card && get_parameter (para, pAUTHKEYTYPE))
|
||||
if (!rc && card && get_parameter (para, pAUTHKEYTYPE))
|
||||
{
|
||||
rc = gen_card_key (PUBKEY_ALGO_RSA, 3, 0, pub_root, sec_root,
|
||||
get_parameter_u32 (para, pKEYEXPIRE), para);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue