]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #187 in SNORT/snort3 from stream_ut_segfault to master
authorRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 10 Dec 2015 18:29:52 +0000 (13:29 -0500)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 10 Dec 2015 18:29:52 +0000 (13:29 -0500)
Squashed commit of the following:

commit 5ae5bdc494575f88346095721e3fcb0391c06e11
Author: davis mcpherson <davis.mcpherson@gmail.com>
Date:   Thu Dec 10 13:11:23 2015 -0500

    init TcpTracker structs to 0 in TcpSession constructor

src/stream/tcp/tcp_session.cc

index c4aeaafbe6c4b6579f335767e9a2c9638c7ad6e4..b14907c224720a66919ffc8981b04ce44a7ab1ca 100644 (file)
@@ -2383,6 +2383,9 @@ TcpSession::TcpSession(Flow* flow) :
     Session(flow), ecn(0), event_mask(0)
 {
     lws_init = tcp_init = false;
+
+    memset(&client, 0, sizeof(TcpTracker));
+    memset(&server, 0, sizeof(TcpTracker));
 }
 
 TcpSession::~TcpSession()