diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-10 16:41:31 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-08-10 16:41:31 +0400 |
commit | e7d06d2bca2dd3d943287e550885ef766809464a (patch) | |
tree | 381cdc499eb57bc837d2dfa0a713805eeddd9f6b /src/plugins | |
parent | 9a591fd8420273eaba4f2a5cd080da82e52757df (diff) | |
download | rspamd-e7d06d2bca2dd3d943287e550885ef766809464a.tar.gz rspamd-e7d06d2bca2dd3d943287e550885ef766809464a.zip |
* Fix bug with parsing raw headers for messages that have mixed line ending style
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/regexp.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |