1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-02 22:38:02 +02:00

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

View File

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