mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Another PASSWD --preset fix.
Check for an error before presetting the passphrase.
This commit is contained in:
parent
b3c71eb26b
commit
b5f585f7d7
2 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue