]> source.dussan.org Git - rspamd.git/commitdiff
* Fix bug with parsing raw headers for messages that have mixed line ending style
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 10 Aug 2009 12:41:31 +0000 (16:41 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 10 Aug 2009 12:41:31 +0000 (16:41 +0400)
src/plugins/regexp.c

index 3613b3f6258d3430a3d8c1641e967a7e9c7dc0be..df5bba08a085acba47af706f343d45a5b3cd3c72 100644 (file)
@@ -244,7 +244,9 @@ find_raw_header_pos (const char *headers, const char *headerv)
                                }
                        }
                }
-               p ++;
+               if (*p != '\0') {
+                       p ++;
+               }
        }
 
        return NULL;