"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http_inspect/http_msg_body_chunk.cc" between
snort3-3.1.31.0.tar.gz and snort3-3.1.32.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

http_msg_body_chunk.cc  (snort3-3.1.31.0):http_msg_body_chunk.cc  (snort3-3.1.32.0)
skipping to change at line 35 skipping to change at line 35
#include "http_common.h" #include "http_common.h"
using namespace HttpCommon; using namespace HttpCommon;
void HttpMsgBodyChunk::update_flow() void HttpMsgBodyChunk::update_flow()
{ {
session_data->body_octets[source_id] = body_octets; session_data->body_octets[source_id] = body_octets;
// Cutter was deleted by splitter when zero-length chunk received or at TCP close // Cutter was deleted by splitter when zero-length chunk received or at TCP close
if (session_data->cutter[source_id] == nullptr) if (session_data->cutter[source_id] == nullptr)
{
session_data->trailer_prep(source_id); session_data->trailer_prep(source_id);
if (session_data->mime_state[source_id] != nullptr)
{
delete session_data->mime_state[source_id];
session_data->mime_state[source_id] = nullptr;
}
if ((source_id == SRC_SERVER) && (session_data->utf_state[source_id] !=
nullptr))
{
delete session_data->utf_state[source_id];
session_data->utf_state[source_id] = nullptr;
}
}
else else
{
update_depth(); update_depth();
}
} }
#ifdef REG_TEST #ifdef REG_TEST
void HttpMsgBodyChunk::print_section(FILE* output) void HttpMsgBodyChunk::print_section(FILE* output)
{ {
print_body_section(output, "chunked body"); print_body_section(output, "chunked body");
} }
#endif #endif
 End of changes. 4 change blocks. 
16 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)