dce_smb2.cc (snort3-3.1.29.0) | : | dce_smb2.cc (snort3-3.1.30.0) | ||
---|---|---|---|---|
skipping to change at line 118 | skipping to change at line 118 | |||
SMB_DEBUG(dce_smb_trace, DEFAULT_TRACE_OPTION_ID, TRACE_DEBUG_LEVEL, p, "smb 2 session created\n"); | SMB_DEBUG(dce_smb_trace, DEFAULT_TRACE_OPTION_ID, TRACE_DEBUG_LEVEL, p, "smb 2 session created\n"); | |||
dce2_smb_stats.total_smb2_sessions++; | dce2_smb_stats.total_smb2_sessions++; | |||
} | } | |||
Dce2Smb2SessionData::~Dce2Smb2SessionData(void) | Dce2Smb2SessionData::~Dce2Smb2SessionData(void) | |||
{ | { | |||
session_data_mutex.lock(); | session_data_mutex.lock(); | |||
for (auto it_session : connected_sessions) | for (auto it_session : connected_sessions) | |||
{ | { | |||
it_session.second->detach_flow(flow_key); | it_session.second->detach_flow(flow_key); | |||
it_session.second->set_file_context_cleaned(true); | ||||
} | } | |||
if (get_tcp_file_tracker() && !(get_tcp_file_tracker()->get_flow_state_map() .empty())) | if (get_tcp_file_tracker() && !(get_tcp_file_tracker()->get_flow_state_map() .empty())) | |||
{ | { | |||
get_tcp_file_tracker()->get_flow_state_map().erase(flow_key); | get_tcp_file_tracker()->get_flow_state_map().erase(flow_key); | |||
tcp_file_tracker = nullptr; | tcp_file_tracker = nullptr; | |||
} | } | |||
session_data_mutex.unlock(); | session_data_mutex.unlock(); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |