]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
init fix for test input
authorTom Peters <thopeter@cisco.com>
Mon, 15 Dec 2014 20:02:06 +0000 (15:02 -0500)
committerTom Peters <thopeter@cisco.com>
Mon, 15 Dec 2014 20:02:06 +0000 (15:02 -0500)
src/service_inspectors/nhttp_inspect/nhttp_test_input.cc

index 1ed8fef178551b01bceebcca886ec17b2bdd769c..7e9f0b6ca20c432a333230e2bf8624887d6317ba 100644 (file)
@@ -38,15 +38,14 @@ NHttpTestInput::~NHttpTestInput() {
 // In the process we may need to skip comments, execute simple commands, and handle escape sequences.
 // The best way to understand this function is to read the comments at the top of the file of test cases.
 void NHttpTestInput::scan(uint8_t*& data, uint32_t &length, SourceId source_id, bool &tcp_close, bool &need_break) {
+    need_break = false;
     // Don't proceed if we have previously flushed data not reassembled yet.
     // Piggyback on traffic moving in the correct direction.
     if (flushed || (source_id != last_source_id)) {
         length = 0;
         return;
     }
-
     tcp_close = tcp_closed;
-    need_break = false;
 
     if (just_flushed) {
         // StreamSplitter just flushed and it has all been sent by reassemble. There may or may not be leftover data