Commit e759db27 e759db27d650197ed1d8f837f30a2d03dcc23b4a by Sergey Poznyakoff

Bugfix

* libmailutils/filter/crlfflt.c (_crlf_encoder): Reset state to
initial if any character other than \r and \n is read.
1 parent d232a467
...@@ -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;
......