]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing ModuleManager. One item PT_LIST are now valid
authorJosh <jrosenba@cisco.com>
Thu, 2 Oct 2014 17:48:52 +0000 (12:48 -0500)
committerJosh <jrosenba@cisco.com>
Thu, 2 Oct 2014 17:48:52 +0000 (12:48 -0500)
src/managers/module_manager.cc

index 75f07f95fe191a0a569a9cda2774e54b037dd425..cf6fb7fe1291e577f49cd20b3b5e025f77490104 100644 (file)
@@ -268,7 +268,17 @@ static const Parameter* get_params(const string& sfx, const Parameter* p)
         return p;
 
     if (new_fqn.find_first_of('.') == std::string::npos)
+    {
+        if (p->type == Parameter::PT_LIST)
+        {
+            const Parameter* tmp_p =
+                reinterpret_cast<const Parameter*>(p->range);
+
+            if ( tmp_p[0].name && !tmp_p[1].name )
+                return tmp_p;
+        }
         return p;
+    }
 
     p = (const Parameter*)p->range;
     return get_params(new_fqn, p);