mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-13 22:21:09 +02:00
scd: fix change_keyattr.
* scd/app-openpgp.c (change_keyattr_from_string): Fix parsing.
This commit is contained in:
parent
44ad9f29d4
commit
c5a9fedba6
@ -2793,8 +2793,8 @@ change_keyattr_from_string (app_t app,
|
|||||||
/* Because this function deletes the key we require the string
|
/* Because this function deletes the key we require the string
|
||||||
"--force" in the data to make clear that something serious might
|
"--force" in the data to make clear that something serious might
|
||||||
happen. */
|
happen. */
|
||||||
sscanf (string, " --force %d %d %n", &key, &algo, &n);
|
sscanf (string, "--force %d %d %n", &key, &algo, &n);
|
||||||
if (n < 13)
|
if (n < 12)
|
||||||
{
|
{
|
||||||
err = gpg_error (GPG_ERR_INV_DATA);
|
err = gpg_error (GPG_ERR_INV_DATA);
|
||||||
goto leave;
|
goto leave;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user