From: Ron Dempster (rdempste) Date: Thu, 26 Oct 2023 19:34:27 +0000 (+0000) Subject: Pull request #4072: search_tool: fall back to normal mpse if no snort config X-Git-Tag: 3.1.74.0~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b74634d16c0dc37a127354139970e2f3635d4407;p=thirdparty%2Fsnort3.git Pull request #4072: search_tool: fall back to normal mpse if no snort config Merge in SNORT/snort3 from ~RDEMPSTE/snort3:muster to master Squashed commit of the following: commit da21ec1a104bde95dc1f944fb50411daf0732803 Author: Ron Dempster (rdempste) Date: Thu Oct 26 10:18:18 2023 -0400 search_tool: fall back to normal mpse if no snort config --- diff --git a/src/search_engines/search_tool.cc b/src/search_engines/search_tool.cc index f8aebd0aa..698c37286 100644 --- a/src/search_engines/search_tool.cc +++ b/src/search_engines/search_tool.cc @@ -139,7 +139,7 @@ int SearchTool::find_all( int num = 0; if (!sc) sc = SnortConfig::get_conf(); - const FastPatternConfig* fp = sc->fast_pattern_config; + const FastPatternConfig* fp = sc ? sc->fast_pattern_config : nullptr; if ( confine && max_len > 0 ) {