From: Tom Peters Date: Mon, 15 Dec 2014 20:02:06 +0000 (-0500) Subject: init fix for test input X-Git-Tag: 3.0.0-233~1078^2^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e17e011825bd0517e8dd01d6584f87c2b765dcb;p=thirdparty%2Fsnort3.git init fix for test input --- diff --git a/src/service_inspectors/nhttp_inspect/nhttp_test_input.cc b/src/service_inspectors/nhttp_inspect/nhttp_test_input.cc index 1ed8fef17..7e9f0b6ca 100644 --- a/src/service_inspectors/nhttp_inspect/nhttp_test_input.cc +++ b/src/service_inspectors/nhttp_inspect/nhttp_test_input.cc @@ -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