mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Suggested code improvements for packet analysis.
This commit is contained in:
parent
4aeab7402d
commit
6f6e5b4df0
2 changed files with 12 additions and 10 deletions
|
@ -61,7 +61,8 @@ AnalyzerResult Analyzer::AnalyzeInnerPacket(Packet* packet,
|
|||
const uint8_t*& data, uint32_t identifier) const
|
||||
{
|
||||
auto inner_analyzer = Lookup(identifier);
|
||||
inner_analyzer = inner_analyzer ? inner_analyzer : default_analyzer;
|
||||
if ( ! inner_analyzer )
|
||||
inner_analyzer = default_analyzer;
|
||||
|
||||
if ( inner_analyzer == nullptr )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue