]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed valgrind issues
authorrcombs <rcombs@sq18.sfeng.sourcefire.com>
Wed, 17 Sep 2014 00:29:19 +0000 (20:29 -0400)
committerrcombs <rcombs@sq18.sfeng.sourcefire.com>
Wed, 17 Sep 2014 00:29:19 +0000 (20:29 -0400)
lua/snort.lua
src/main/modules.cc
src/network_inspectors/binder/binder.cc
src/stream/tcp/tcp_session.cc

index 5d007a479f1e9beffe7fd5ebff91d106e01b8d4c..5d046c6d73fd60db34b5790e31c145b76cab6de3 100644 (file)
@@ -82,8 +82,8 @@ alert tcp any any -> any 80 ( http_method; content:"GIT"; gid:1; sid:1000051)
 ips =
 {
     --include = '../test.rules',
-    include = 'rules/active.rules',
+    --include = 'rules/active.rules',
     --rules = local_rules,
-    --enable_builtin_rules = true
+    enable_builtin_rules = true
 }
 
index c20240810035366cfb6368cec59e96f7b778e4d1..eaabc4c07c9500d07cb3edcaae63ff658b6d1ac8 100644 (file)
@@ -1659,7 +1659,8 @@ static const char* hosts_help =
 class HostsModule : public Module
 {
 public:
-    HostsModule() : Module("hosts", hosts_help, hosts_params, true) { };
+    HostsModule() : Module("hosts", hosts_help, hosts_params, true)
+    { app = nullptr; host = nullptr; };
     ~HostsModule() { assert(!host && !app); };
 
     bool set(const char*, Value&, SnortConfig*);
index 1c5425001dfc9d785e19774a7e5f90732b0e2a6c..6f78465aceca80e56380fa30e0db6863c7027ae9 100644 (file)
@@ -49,6 +49,7 @@ Binding::Binding()
     when.vlans.set();
     when.ports.set();
 
+    when.id = 0;
     when.role = BR_EITHER;
     use.action = BA_INSPECT;
 }
index 4c548a0a19672b5af84f96e62182f41e20dbb45f..c7dc98639b7b71a78a996d7fbc929df16f1a8031 100644 (file)
@@ -137,7 +137,8 @@ const char* tcp_pegs[] =
     "gaps",
     "internal events",
     "client cleanup flushes",
-    "server cleanup flushes"
+    "server cleanup flushes",
+    nullptr
 };
 
 THREAD_LOCAL TcpStats tcpStats;
@@ -642,6 +643,8 @@ static inline uint16_t GetTcpReassemblyPolicy(int os_policy)
 // config methods
 //-------------------------------------------------------------------------
 
+
+
 StreamTcpConfig::StreamTcpConfig()
 {
     policy = STREAM_POLICY_DEFAULT;
@@ -652,6 +655,14 @@ StreamTcpConfig::StreamTcpConfig()
     hs_timeout = -1;
     flags = 0;
 
+    flush_factor = 0;
+    session_on_syn = 0;  // FIXIT-L configurable via module?
+    overlap_limit = 0;
+
+    hs_timeout = 0;
+    footprint = 0;
+    paf_max = 16384;
+
     max_queued_bytes = S5_DEFAULT_MAX_QUEUED_BYTES;
     max_queued_segs = S5_DEFAULT_MAX_QUEUED_SEGS;