mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
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:
parent
289a1e2e8e
commit
8c9b3bd3ae
1 changed files with 1 additions and 1 deletions
|
@ -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] )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue