]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Core: Fix part length when dealing with boundaries
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 17 Dec 2018 14:35:59 +0000 (14:35 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 17 Dec 2018 14:35:59 +0000 (14:35 +0000)
src/libmime/mime_parser.c

index 3b84cbbbf4dbc1a8adb268f497bad3a4c3df3e31..2ba48e372e4db380f09f056476b3a06677b01a03 100644 (file)
@@ -925,7 +925,7 @@ rspamd_mime_preprocess_cb (struct rspamd_multipattern *mp,
                                bend ++;
                        }
 
-                       b.boundary = p - st->start - 3;
+                       b.boundary = p - st->start - 2;
                        b.start = bend - st->start;
 
                        if (closing) {