diff options
author | Werner Koch <wk@gnupg.org> | 2015-03-16 19:51:06 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2015-03-16 19:51:06 +0100 |
commit | 8bc1debfefb7cd4b0be724317793d59dea37d677 (patch) | |
tree | 6837fb812d20bc7927dee4234f9a5c09264fdf88 /g10/build-packet.c | |
parent | gpg: Fix possible dead code elimination. (diff) | |
download | gnupg2-8bc1debfefb7cd4b0be724317793d59dea37d677.tar.xz gnupg2-8bc1debfefb7cd4b0be724317793d59dea37d677.zip |
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>
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r-- | g10/build-packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c index 557dffee1..e984e3e1b 100644 --- a/g10/build-packet.c +++ b/g10/build-packet.c @@ -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; |