1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-05-31 22:18:03 +02:00

scd: Fix ecc_oid.

* scd/app-openpgp.c (ecc_oid): Call with OIDBUF.
This commit is contained in:
NIIBE Yutaka 2015-08-05 08:17:46 +09:00
parent 0751571cac
commit d088d2c816

View File

@ -4386,7 +4386,7 @@ ecc_oid (unsigned char *buf, size_t buflen)
memcpy (oidbuf+1, buf, 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)
{
xfree (oidbuf);