]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing Modules
authorJosh <jrosenba@cisco.com>
Thu, 25 Sep 2014 17:11:40 +0000 (13:11 -0400)
committerJosh <jrosenba@cisco.com>
Thu, 25 Sep 2014 17:11:40 +0000 (13:11 -0400)
src/main/modules.cc
src/stream/tcp/tcp_module.cc

index f2f1c89faf019675e15bc2a01836a65b29acd79d..83abb8795cfdf0edbe42cb3ae8273f876e44a6a8 100644 (file)
@@ -1803,9 +1803,6 @@ bool HostsModule::begin(const char* fqn, int idx, SnortConfig*)
     else if ( idx && !strcmp(fqn, "hosts") )
         host = SFAT_CreateHostEntry();
 
-    else
-        return false;
-
     return true;
 }
 
@@ -1821,8 +1818,6 @@ bool HostsModule::end(const char* fqn, int idx, SnortConfig*)
         SFAT_AddHost(host);
         host = nullptr;
     }
-    else
-        return false;
 
     return true;
 }
index f5eceba69f9ab631c044cdc09154fe6da5246bbe..539309cd938e2db8f8ee13ea4b3e8757f580c0fd 100644 (file)
@@ -311,13 +311,18 @@ bool StreamTcpModule::set(const char*, Value& v, SnortConfig*)
     return true;
 }
 
-bool StreamTcpModule::begin(const char*, int, SnortConfig*)
+bool StreamTcpModule::begin(const char* fqn, int, SnortConfig*)
 {
+    if ( !strcmp(fqn, "stream_tcp.small_segments") ||
+         !strcmp(fqn, "stream_tcp.queue_limit"))
+    {
+        return true;
+    }
+
     if ( config )
         return false;
 
     config = new StreamTcpConfig;
-
     return true;
 }