gpg: Fix allocation for EXTRAHASH.

* g10/sign.c (clearsign_file): Fix the size to allocate.

--

GnuPG-bug-id: 5430
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2021-05-11 14:49:06 +09:00
parent 32baa9acfb
commit ac731dbbbd
1 changed files with 1 additions and 1 deletions

View File

@ -1504,7 +1504,7 @@ clearsign_file (ctrl_t ctrl,
push_armor_filter (afx, out);
/* Prepare EXTRAHASH, so that it can be used for v5 signature. */
extrahash = xtrymalloc (sizeof extrahash);
extrahash = xtrymalloc (sizeof *extrahash);
if (!extrahash)
{
rc = gpg_error_from_syserror ();