mirror of git://git.gnupg.org/gnupg.git
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>
This commit is contained in:
parent
813e24108a
commit
3151210e45
|
@ -255,7 +255,7 @@ check_signature2 (ctrl_t ctrl,
|
||||||
nbytes = 6;
|
nbytes = 6;
|
||||||
for (i=0; i < nsig; i++ )
|
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();
|
BUG();
|
||||||
nbytes += n;
|
nbytes += n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue