diff options
author | Werner Koch <wk@gnupg.org> | 1998-05-26 15:38:00 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-05-26 15:38:00 +0200 |
commit | eed2faab53f859c98bf85f1e324614da640bf3ff (patch) | |
tree | 4a701250cb3300121456599f90cd7a22e03e8b59 /g10/armor.c | |
parent | new release (diff) | |
download | gnupg2-eed2faab53f859c98bf85f1e324614da640bf3ff.tar.xz gnupg2-eed2faab53f859c98bf85f1e324614da640bf3ff.zip |
add-key works
Diffstat (limited to 'g10/armor.c')
-rw-r--r-- | g10/armor.c | 9 |
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; |