"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http_inspect/http_flow_data.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_flow_data.cc  (snort3-3.1.31.0):http_flow_data.cc  (snort3-3.1.32.0)
skipping to change at line 28 skipping to change at line 28
// http_flow_data.cc author Tom Peters <thopeter@cisco.com> // http_flow_data.cc author Tom Peters <thopeter@cisco.com>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include "config.h" #include "config.h"
#endif #endif
#include "http_flow_data.h" #include "http_flow_data.h"
#include "decompress/file_decomp.h" #include "decompress/file_decomp.h"
#include "main/snort_debug.h" #include "main/snort_debug.h"
#include "mime/file_mime_process.h"
#include "service_inspectors/http2_inspect/http2_flow_data.h" #include "service_inspectors/http2_inspect/http2_flow_data.h"
#include "utils/js_identifier_ctx.h" #include "utils/js_identifier_ctx.h"
#include "utils/js_normalizer.h" #include "utils/js_normalizer.h"
#include "http_cutter.h" #include "http_cutter.h"
#include "http_common.h" #include "http_common.h"
#include "http_enum.h" #include "http_enum.h"
#include "http_module.h" #include "http_module.h"
#include "http_msg_header.h" #include "http_msg_header.h"
#include "http_msg_request.h" #include "http_msg_request.h"
skipping to change at line 208 skipping to change at line 209
void HttpFlowData::trailer_prep(SourceId source_id) void HttpFlowData::trailer_prep(SourceId source_id)
{ {
type_expected[source_id] = SEC_TRAILER; type_expected[source_id] = SEC_TRAILER;
compression[source_id] = CMP_NONE; compression[source_id] = CMP_NONE;
if (compress_stream[source_id] != nullptr) if (compress_stream[source_id] != nullptr)
{ {
inflateEnd(compress_stream[source_id]); inflateEnd(compress_stream[source_id]);
delete compress_stream[source_id]; delete compress_stream[source_id];
compress_stream[source_id] = nullptr; compress_stream[source_id] = nullptr;
} }
delete mime_state[source_id];
mime_state[source_id] = nullptr;
delete utf_state[source_id];
utf_state[source_id] = nullptr;
} }
void HttpFlowData::garbage_collect() void HttpFlowData::garbage_collect()
{ {
HttpTransaction** current = &discard_list; HttpTransaction** current = &discard_list;
while (*current != nullptr) while (*current != nullptr)
{ {
if ((*current)->is_clear()) if ((*current)->is_clear())
{ {
HttpTransaction* tmp = *current; HttpTransaction* tmp = *current;
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

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