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:
parent
b3c71eb26b
commit
b5f585f7d7
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user