aboutsummaryrefslogtreecommitdiffstats
path: root/g10/plaintext.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r--g10/plaintext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c
index b559a90b2..7f9edb82c 100644
--- a/g10/plaintext.c
+++ b/g10/plaintext.c
@@ -114,7 +114,8 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx,
goto leave;
}
- if( pt->len ) {
+ if( !pt->is_partial ) {
+ /* we have an actual length (which might be zero). */
assert( !clearsig );
if( convert ) { /* text mode */
for( ; pt->len; pt->len-- ) {