]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
alert_fast fix
authorrcombs <rcombs@sq18.sfeng.sourcefire.com>
Wed, 29 Oct 2014 17:44:22 +0000 (13:44 -0400)
committerrcombs <rcombs@sq18.sfeng.sourcefire.com>
Wed, 29 Oct 2014 17:44:22 +0000 (13:44 -0400)
ChangeLog
src/loggers/alert_fast.cc

index a5da3916296fe3c0a4416c2a9d7092f759d6ff34..dfe738210ac805422fa247d2ca44f5d53430b789 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,6 +45,7 @@
 -- fixed segfaults due to unitialized cleanup_pkt and unset stream_tcp
 -- matched up stream_tcp.policy enum with defines
 -- tweaked S5_TRACE output
+-- fixed alert_fast to default to not print payload
 
 125
 -- discovered can't catch exceptions thrown from Lua to C++; need to
index d2e222ad5f8a114cbb33b929b201213fff6ae35b..262fb407465f02c7eb3843af4a847a1d89f14ee2 100644 (file)
@@ -84,7 +84,7 @@ static const Parameter s_params[] =
     { "file", Parameter::PT_BOOL, nullptr, "false",
       "output to " F_NAME " instead of stdout" },
 
-    { "packet", Parameter::PT_BOOL, nullptr, "true",
+    { "packet", Parameter::PT_BOOL, nullptr, "false",
       "output packet dump with alert" },
 
     { "limit", Parameter::PT_INT, "0:", "0",
@@ -140,7 +140,7 @@ bool FastModule::begin(const char*, int, SnortConfig*)
     file = false;
     limit = 0;
     units = 0;
-    packet = true;
+    packet = false;
     return true;
 }
 
@@ -300,7 +300,7 @@ void FastLogger::alert(Packet *p, const char *msg, Event *event)
         LogIpAddrs(fast_log, p);
     }
 
-    if(packet)
+    if ( packet || ScOutputAppData() )
     {
         TextLog_NewLine(fast_log);
 #ifdef REG_TEST