From: Vsevolod Stakhov Date: Mon, 10 Aug 2009 12:41:31 +0000 (+0400) Subject: * Fix bug with parsing raw headers for messages that have mixed line ending style X-Git-Tag: 0.2.7~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e7d06d2bca2dd3d943287e550885ef766809464a;p=rspamd.git * Fix bug with parsing raw headers for messages that have mixed line ending style --- diff --git a/src/plugins/regexp.c b/src/plugins/regexp.c index 3613b3f62..df5bba08a 100644 --- a/src/plugins/regexp.c +++ b/src/plugins/regexp.c @@ -244,7 +244,9 @@ find_raw_header_pos (const char *headers, const char *headerv) } } } - p ++; + if (*p != '\0') { + p ++; + } } return NULL;