diff options
author | NIIBE Yutaka <[email protected]> | 2022-02-23 00:12:07 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-02-23 00:12:07 +0000 |
commit | fb007d93de7b0786dcde87d4892724f579fed82e (patch) | |
tree | f52e728cc7b279f29e62216698175867a44e8065 /g10/cipher-aead.c | |
parent | gpg: Fix generating AEAD packet. (diff) | |
download | gnupg-fb007d93de7b0786dcde87d4892724f579fed82e.tar.gz gnupg-fb007d93de7b0786dcde87d4892724f579fed82e.zip |
Fix the previous commit.
--
Fixes-commit: 903c5fe369bc4948718a7d2a0e19b1acdb2406c4
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/cipher-aead.c')
-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 8dd6611ff..ab3616446 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->chunklen) + if (cfx->chunklen || cfx->buflen) { if (DBG_FILTER) log_debug ("encrypting last %zu bytes of the last chunk\n",cfx->buflen); |