"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.28.0.tar.gz and snort3-3.1.29.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.28.0):http_flow_data.cc  (snort3-3.1.29.0)
skipping to change at line 346 skipping to change at line 346
HttpInfractions* HttpFlowData::get_infractions(SourceId source_id) HttpInfractions* HttpFlowData::get_infractions(SourceId source_id)
{ {
if (infractions[source_id] != nullptr) if (infractions[source_id] != nullptr)
return infractions[source_id]; return infractions[source_id];
assert(transaction[source_id] != nullptr); assert(transaction[source_id] != nullptr);
assert(transaction[source_id]->get_infractions(source_id) != nullptr); assert(transaction[source_id]->get_infractions(source_id) != nullptr);
return transaction[source_id]->get_infractions(source_id); return transaction[source_id]->get_infractions(source_id);
} }
void HttpFlowData::finish_h2_body(HttpCommon::SourceId source_id, HttpEnums::H2B odyState state, void HttpFlowData::finish_h2_body(HttpCommon::SourceId source_id, HttpCommon::H2 BodyState state,
bool clear_partial_buffer) bool clear_partial_buffer)
{ {
assert((h2_body_state[source_id] == H2_BODY_NOT_COMPLETE) || assert((h2_body_state[source_id] == H2_BODY_NOT_COMPLETE) ||
(h2_body_state[source_id] == H2_BODY_LAST_SEG)); (h2_body_state[source_id] == H2_BODY_LAST_SEG));
h2_body_state[source_id] = state; h2_body_state[source_id] = state;
partial_flush[source_id] = false; partial_flush[source_id] = false;
if (clear_partial_buffer) if (clear_partial_buffer)
{ {
// We've already sent all data through detection so no need to reinspect . Just need to // We've already sent all data through detection so no need to reinspect . Just need to
// prep for trailers // prep for trailers
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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