From: Vsevolod Stakhov Date: Tue, 15 Dec 2015 15:02:41 +0000 (+0000) Subject: Add fallback state for '\n\r' line endings X-Git-Tag: 1.1.0~295 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28647a4aa4c16b36a10dd9e02dab84a357c5fa7b;p=thirdparty%2Frspamd.git Add fallback state for '\n\r' line endings --- diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 64e02955e2..faa33dc8f4 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -1212,6 +1212,10 @@ rspamd_string_find_eoh (GString *input) state = got_linebreak_lf; p++; } + else { + p++; + state = skip_char; + } break; case got_linebreak_lf: g_assert (c != NULL);