]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #1805 in SNORT/snort3 from ~THOPETER/snort3:nhttp127 to master
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Thu, 17 Oct 2019 19:54:44 +0000 (15:54 -0400)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Thu, 17 Oct 2019 19:54:44 +0000 (15:54 -0400)
Squashed commit of the following:

commit 35c95333f95722ba5b344d34c073c3734317adb2
Author: Tom Peters <thopeter@cisco.com>
Date:   Thu Oct 17 14:43:45 2019 -0400

    http_inspect: add more config initializers

src/service_inspectors/http_inspect/http_module.h

index e95e112602d02af8a4ae6d985020a20114ece41f..65cbeb9866fe406ed0d126f048054d181af6194b 100644 (file)
 struct HttpParaList
 {
 public:
-    int64_t request_depth;
-    int64_t response_depth;
+    int64_t request_depth = -1;
+    int64_t response_depth = -1;
 
-    bool unzip;
+    bool unzip = true;
     bool normalize_utf = true;
     bool decompress_pdf = false;
     bool decompress_swf = false;
@@ -79,13 +79,13 @@ public:
     UriParam uri_param;
 
 #ifdef REG_TEST
-    int64_t print_amount;
+    int64_t print_amount = 1200;
 
-    bool test_input;
-    bool test_output;
-    bool print_hex;
-    bool show_pegs;
-    bool show_scan;
+    bool test_input = false;
+    bool test_output = false;
+    bool print_hex = false;
+    bool show_pegs = true;
+    bool show_scan = false;
 #endif
 };