scd: Fix commit b30c15bf (again).

* g10/keygen.c (do_generate_keypair): Clear the variable S.

--

GnuPG-bug-id: 2201
This commit is contained in:
NIIBE Yutaka 2015-12-23 16:55:00 +09:00
parent 5c759924fb
commit aecf1a3c57
1 changed files with 1 additions and 0 deletions

View File

@ -4104,6 +4104,7 @@ do_generate_keypair (ctrl_t ctrl, struct para_data_s *para,
if (!err && get_parameter (para, pSUBKEYTYPE))
{
sub_psk = NULL;
s = NULL;
if (!card || (s = get_parameter_value (para, pCARDBACKUPKEY)))
{
err = do_create (get_parameter_algo (para, pSUBKEYTYPE, NULL),