diff --git a/src/packet_analysis/Dispatcher.cc b/src/packet_analysis/Dispatcher.cc index 418d4fbb9f..f39c30189a 100644 --- a/src/packet_analysis/Dispatcher.cc +++ b/src/packet_analysis/Dispatcher.cc @@ -50,7 +50,7 @@ void Dispatcher::Register(uint32_t identifier, AnalyzerPtr analyzer) { const AnalyzerPtr& Dispatcher::Lookup(uint32_t identifier) const { int64_t index = identifier - lowest_identifier; - if ( index >= 0 && index < static_cast(table.size()) && table[index] != nullptr ) + if ( index >= 0 && index < static_cast(table.size()) ) return table[index]; return Analyzer::nil;