dce_smb2_session.cc (snort3-3.1.29.0) | : | dce_smb2_session.cc (snort3-3.1.30.0) | ||
---|---|---|---|---|
skipping to change at line 162 | skipping to change at line 162 | |||
return tree; | return tree; | |||
} | } | |||
void Dce2Smb2SessionTracker::clean_file_context_from_flow(uint64_t file_id, uint 64_t | void Dce2Smb2SessionTracker::clean_file_context_from_flow(uint64_t file_id, uint 64_t | |||
file_name_hash) | file_name_hash) | |||
{ | { | |||
set_do_not_delete(true); | set_do_not_delete(true); | |||
attached_flows_mutex.lock(); | attached_flows_mutex.lock(); | |||
for (auto it_flow : attached_flows) | for (auto it_flow : attached_flows) | |||
{ | { | |||
if (get_file_context_cleaned()) | ||||
{ | ||||
attached_flows_mutex.unlock(); | ||||
set_do_not_delete(false); | ||||
return; | ||||
} | ||||
snort::FileFlows* file_flows = snort::FileFlows::get_file_flows( | snort::FileFlows* file_flows = snort::FileFlows::get_file_flows( | |||
it_flow.second->get_tcp_flow(), false); | it_flow.second->get_tcp_flow(), false); | |||
if (file_flows) | if (file_flows) | |||
file_flows->remove_processed_file_context(file_name_hash, file_id); | file_flows->remove_processed_file_context(file_name_hash, file_id); | |||
} | } | |||
attached_flows_mutex.unlock(); | attached_flows_mutex.unlock(); | |||
set_do_not_delete(false); | set_do_not_delete(false); | |||
} | } | |||
void Dce2Smb2SessionTracker::increase_size(const size_t size) | void Dce2Smb2SessionTracker::increase_size(const size_t size) | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 6 lines changed or added |