GH-554: remove use of file magic in protocol-based signature logic

This can be a significant performance/memory improvement since
otherwise the protocol-based rule matching logic ends up superfluously
creating file-matching state per file-matcher per connection/endpoint.
This commit is contained in:
Jon Siwek 2019-08-27 16:16:39 -07:00
parent 289a1e2e8e
commit 8c9b3bd3ae

View file

@ -732,7 +732,7 @@ RuleEndpointState* RuleMatcher::InitEndpoint(analyzer::Analyzer* analyzer,
// pattern matching to do.
if ( hdr_test->level <= RE_level )
{
for ( int i = 0; i < Rule::TYPES; ++i )
for ( int i = Rule::PAYLOAD; i < Rule::TYPES; ++i )
{
for ( const auto& set : hdr_test->psets[i] )
{