From fb007d93de7b0786dcde87d4892724f579fed82e Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Wed, 23 Feb 2022 09:12:07 +0900 Subject: [PATCH] Fix the previous commit. -- Fixes-commit: 903c5fe369bc4948718a7d2a0e19b1acdb2406c4 Signed-off-by: NIIBE Yutaka --- g10/cipher-aead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);