]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixed partial flushes
authorRuss Combs <rucombs@cisco.com>
Thu, 23 Oct 2014 18:41:22 +0000 (14:41 -0400)
committerRuss Combs <rucombs@cisco.com>
Thu, 23 Oct 2014 18:41:22 +0000 (14:41 -0400)
ChangeLog
src/stream/tcp/tcp_session.cc

index 78e075b793a8eff199be7e03b189f6351dd8a9e2..9c4b5538c921d391177f16986f80664d9745f714 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
 -- changed stream to not generate rebuilt packets when the splitter doesn't
    reassemble packets (ie nhttp internal buffers)
 -- added rebuilt buffers count
+-- fixed partial flushes
 
 125
 -- discovered can't catch exceptions thrown from Lua to C++; need to
index 30e42240fb18a94cc21827e1ad87bb5b5b5594f6..79a74859846b0dc966d150c702f05628ec451149 100644 (file)
@@ -2112,8 +2112,10 @@ static inline int _flush_to_seq (
             break; /* No more data... bail */
 
         else if ( !s5_pkt->dsize )
+        {
             tcpStats.rebuilt_buffers++;
-
+            bytes_processed += flushed_bytes;
+        }
         else
         {
             s5_pkt->packet_flags |= (PKT_REBUILT_STREAM|PKT_STREAM_EST);