diff options
author | NIIBE Yutaka <[email protected]> | 2022-02-22 12:12:54 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-02-22 12:12:54 +0000 |
commit | 903c5fe369bc4948718a7d2a0e19b1acdb2406c4 (patch) | |
tree | f014990b308511d7bd284bb63501a2a9f1ca8214 | |
parent | scd,w32: Print code pages with --show-configs (diff) | |
download | gnupg-903c5fe369bc4948718a7d2a0e19b1acdb2406c4.tar.gz gnupg-903c5fe369bc4948718a7d2a0e19b1acdb2406c4.zip |
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 <[email protected]>
-rw-r--r-- | g10/cipher-aead.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/cipher-aead.c b/g10/cipher-aead.c index 1fd2021e5..8dd6611ff 100644 --- a/g10/cipher-aead.c +++ b/g10/cipher-aead.c @@ -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); |