Suggested code improvements for packet analysis.

This commit is contained in:
Jan Grashoefer 2020-08-25 11:14:36 +02:00 committed by Tim Wojtulewicz
parent 4aeab7402d
commit 6f6e5b4df0
2 changed files with 12 additions and 10 deletions

View file

@ -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 )
{