mirror of
git://git.gnupg.org/gnupg.git
synced 2024-06-06 23:17:47 +02:00
scd: Fix ecc_oid.
* scd/app-openpgp.c (ecc_oid): Call with OIDBUF.
This commit is contained in:
parent
0751571cac
commit
d088d2c816
|
@ -4386,7 +4386,7 @@ ecc_oid (unsigned char *buf, size_t buflen)
|
||||||
|
|
||||||
memcpy (oidbuf+1, buf, buflen);
|
memcpy (oidbuf+1, buf, buflen);
|
||||||
oidbuf[0] = buflen;
|
oidbuf[0] = buflen;
|
||||||
oid = gcry_mpi_set_opaque (NULL, buf, buflen * 8);
|
oid = gcry_mpi_set_opaque (NULL, oidbuf, (buflen+1) * 8);
|
||||||
if (!oid)
|
if (!oid)
|
||||||
{
|
{
|
||||||
xfree (oidbuf);
|
xfree (oidbuf);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user