1
0
Fork 0
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:
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

@ -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);