aboutsummaryrefslogtreecommitdiffstats
path: root/g10/cipher-aead.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/cipher-aead.c')
-rw-r--r--g10/cipher-aead.c2
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);