]> source.dussan.org Git - rspamd.git/commitdiff
Add fallback state for '\n\r' line endings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Dec 2015 15:02:41 +0000 (15:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 15 Dec 2015 15:02:41 +0000 (15:02 +0000)
src/libutil/str_util.c

index 64e02955e24045fa9d03da4ed5b481f789f6adf5..faa33dc8f4c8f6be7d6c2845d13e28c0be931f2b 100644 (file)
@@ -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);