mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01: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);
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user