We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61451b commit 6a661dfCopy full SHA for 6a661df
storage/cache.cpp
@@ -181,6 +181,10 @@ void NHTFlowCache::finish()
181
if (m_flow_table[i]->is_in_ctt && !m_flow_table[i]->is_waiting_for_export) {
182
send_export_request_to_ctt(m_flow_table[i]->m_flow.flow_hash_ctt);
183
m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt] -= 1;
184
+ if (m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt] < 0)
185
+ {
186
+ throw "bad ctt record";
187
+ }
188
if (m_hashes_in_ctt[m_flow_table[i]->m_flow.flow_hash_ctt] == 0) {
189
m_hashes_in_ctt.erase(m_flow_table[i]->m_flow.flow_hash_ctt);
190
}
0 commit comments