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:
NIIBE Yutaka 2020-11-02 11:14:56 +09:00
parent 813e24108a
commit 3151210e45
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}