Bugfix
* libmailutils/filter/crlfflt.c (_crlf_encoder): Reset state to initial if any character other than \r and \n is read.
Showing
1 changed file
with
3 additions
and
0 deletions
... | @@ -88,8 +88,11 @@ _crlf_encoder (void *xd, | ... | @@ -88,8 +88,11 @@ _crlf_encoder (void *xd, |
88 | optr[j++] = c; | 88 | optr[j++] = c; |
89 | } | 89 | } |
90 | else | 90 | else |
91 | { | ||
92 | *state = state_init; | ||
91 | optr[j++] = c; | 93 | optr[j++] = c; |
92 | } | 94 | } |
95 | } | ||
93 | iobuf->isize = i; | 96 | iobuf->isize = i; |
94 | iobuf->osize = j; | 97 | iobuf->osize = j; |
95 | return mu_filter_ok; | 98 | return mu_filter_ok; | ... | ... |
-
Please register or sign in to post a comment