aboutsummaryrefslogtreecommitdiffstats
path: root/g10/armor.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/armor.c')
-rw-r--r--g10/armor.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/g10/armor.c b/g10/armor.c
index 462dc17b3..49352a1eb 100644
--- a/g10/armor.c
+++ b/g10/armor.c
@@ -703,8 +703,13 @@ fake_packet( armor_filter_context_t *afx, IOBUF a,
break;
case fhdrENDClearsig:
- assert( emplines );
- emplines--; /* don't count the last one */
+ /* FIXME: this is wrong: Only the last CRLF should
+ * not be included in the hash, muts rewrite the FSM again
+ * This proble does only occur if the last line does not end
+ * in with a LF?
+ */
+ if( emplines )
+ emplines--; /* don't count the last one */
state = fhdrENDClearsigHelp;
afx->helplen = n;
break;