1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Another PASSWD --preset fix.

Check for an error before presetting the passphrase.
This commit is contained in:
Ben Kibbey 2011-04-17 16:48:44 -04:00 committed by Werner Koch
parent b3c71eb26b
commit b5f585f7d7
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-04-17 Ben Kibbey <bjk@luxsci.net>
* command.c (cmd_passwd): Check for an error before presetting.
2011-04-12 Ben Kibbey <bjk@luxsci.net>
* command.c (cmd_passwd): Fixed --preset when not previously cached.

View File

@ -1530,7 +1530,7 @@ cmd_passwd (assuan_context_t ctx, char *line)
}
}
}
if (opt_preset)
if (!err && opt_preset)
{
char hexgrip[40+1];
bin2hex(grip, 20, hexgrip);