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
1 changed files with 1 additions and 1 deletions

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);