mirror of
git://git.gnupg.org/gnupg.git
synced 2025-06-09 17:41:05 +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
@ -2794,7 +2794,7 @@ change_keyattr_from_string (app_t app,
|
|||||||
"--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