From: Vsevolod Stakhov Date: Wed, 11 Mar 2015 14:18:19 +0000 (+0000) Subject: Distinguish RSPAMC from SPAMC. X-Git-Tag: 0.8.3~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c49ea300ddc0dd367d88e657f8956ac08f315b9d;p=rspamd.git Distinguish RSPAMC from SPAMC. --- diff --git a/contrib/http-parser/http_parser.c b/contrib/http-parser/http_parser.c index 129df138d..5295b6bdc 100644 --- a/contrib/http-parser/http_parser.c +++ b/contrib/http-parser/http_parser.c @@ -1218,6 +1218,8 @@ size_t http_parser_execute (http_parser *parser, case s_req_spamc_start: switch (ch) { case 'S': + parser->flags |= F_SPAMC; + /* go forward */ case 'R': parser->state = s_req_spamc; break; diff --git a/contrib/http-parser/http_parser.h b/contrib/http-parser/http_parser.h index a322634f1..f6f29b057 100644 --- a/contrib/http-parser/http_parser.h +++ b/contrib/http-parser/http_parser.h @@ -133,6 +133,7 @@ enum flags , F_TRAILING = 1 << 3 , F_UPGRADE = 1 << 4 , F_SKIPBODY = 1 << 5 + , F_SPAMC = 1 << 6 };