gpg: Fix generating AEAD packet.

* g10/cipher-aead.c (do_free): Fix the condition of the last chunk.

--

GnuPG-bug-id: 5853
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-02-22 21:12:54 +09:00
parent cff68fe359
commit 903c5fe369
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ do_free (cipher_filter_context_t *cfx, iobuf_t a)
if (DBG_FILTER)
log_debug ("do_free: buflen=%zu\n", cfx->buflen);
if (cfx->buflen)
if (cfx->chunklen)
{
if (DBG_FILTER)
log_debug ("encrypting last %zu bytes of the last chunk\n",cfx->buflen);