diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2020-11-02 03:14:56 +0100 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2020-11-02 03:14:56 +0100 |
commit | 3151210e455f14848921fac838a5064749258d9f (patch) | |
tree | 1e71c499d56b1618b8651a0fc98b57de80b9c004 /g10/sig-check.c | |
parent | gpg: Fix SOS handling with libgcrypt version <= 1.8. (diff) | |
download | gnupg2-3151210e455f14848921fac838a5064749258d9f.tar.xz gnupg2-3151210e455f14848921fac838a5064749258d9f.zip |
gpg: Fix counting buffer size in check_signature2.
* g10/sig-check.c (check_signature2): Use GCRYMPI_FMT_PGP.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to '')
-rw-r--r-- | g10/sig-check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sig-check.c b/g10/sig-check.c index ec7778202..4e593858f 100644 --- a/g10/sig-check.c +++ b/g10/sig-check.c @@ -255,7 +255,7 @@ check_signature2 (ctrl_t ctrl, nbytes = 6; for (i=0; i < nsig; i++ ) { - if (gcry_mpi_print (GCRYMPI_FMT_USG, NULL, 0, &n, sig->data[i])) + if (gcry_mpi_print (GCRYMPI_FMT_PGP, NULL, 0, &n, sig->data[i])) BUG(); nbytes += n; } |