mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: Fix broken write of opaque MPI length header.
* g10/build-packet.c (gpg_mpi_write): Use a char array for the length. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
1a9f13bc66
commit
8bc1debfef
@ -165,7 +165,7 @@ gpg_mpi_write (iobuf_t out, gcry_mpi_t a)
|
||||
{
|
||||
unsigned int nbits;
|
||||
const void *p;
|
||||
unsigned int lenhdr[2];
|
||||
unsigned char lenhdr[2];
|
||||
|
||||
p = gcry_mpi_get_opaque (a, &nbits);
|
||||
lenhdr[0] = nbits >> 8;
|
||||
|
Loading…
x
Reference in New Issue
Block a user