diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-15 15:02:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-15 15:02:41 +0000 |
commit | 28647a4aa4c16b36a10dd9e02dab84a357c5fa7b (patch) | |
tree | 3824a1fe8e89ccc7d002b3890e8c6dea4ef664c4 /src/libutil/str_util.c | |
parent | 160b0a033b42af7ebd6dafdab277318ef6f36e84 (diff) | |
download | rspamd-28647a4aa4c16b36a10dd9e02dab84a357c5fa7b.tar.gz rspamd-28647a4aa4c16b36a10dd9e02dab84a357c5fa7b.zip |
Add fallback state for '\n\r' line endings
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r-- | src/libutil/str_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 64e02955e..faa33dc8f 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); |