mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-22 14:57:02 +01:00
scd: Fix size_t/unsigned int mismatch.
* scd/app-openpgp.c (ecc_writekey): Use extra var n.
This commit is contained in:
parent
d382242fb6
commit
55e64f47a5
@ -3366,6 +3366,7 @@ ecc_writekey (app_t app, gpg_error_t (*pincb)(void*, const char *, char **),
|
|||||||
{
|
{
|
||||||
gcry_mpi_t oid;
|
gcry_mpi_t oid;
|
||||||
const unsigned char *oidbuf;
|
const unsigned char *oidbuf;
|
||||||
|
unsigned int n;
|
||||||
size_t oid_len;
|
size_t oid_len;
|
||||||
unsigned char fprbuf[20];
|
unsigned char fprbuf[20];
|
||||||
|
|
||||||
@ -3373,7 +3374,8 @@ ecc_writekey (app_t app, gpg_error_t (*pincb)(void*, const char *, char **),
|
|||||||
if (err)
|
if (err)
|
||||||
goto leave;
|
goto leave;
|
||||||
|
|
||||||
oidbuf = gcry_mpi_get_opaque (oid, &oid_len);
|
oidbuf = gcry_mpi_get_opaque (oid, &n);
|
||||||
|
oid_len = n;
|
||||||
if (!oidbuf)
|
if (!oidbuf)
|
||||||
{
|
{
|
||||||
err = gpg_error_from_syserror ();
|
err = gpg_error_from_syserror ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user