From: Mike Stepanek (mstepane) Date: Fri, 29 Oct 2021 17:42:37 +0000 (+0000) Subject: Merge pull request #3140 in SNORT/snort3 from ~VHORBATO/snort3:fix_wempty-body_master... X-Git-Tag: 3.1.16.0~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=485b50fad90ff853ffd811ead6d621a3546302b8;p=thirdparty%2Fsnort3.git Merge pull request #3140 in SNORT/snort3 from ~VHORBATO/snort3:fix_wempty-body_master to master Squashed commit of the following: commit 94e9caa22eb12303af0ee3de95370a43eeecea4b Author: Vitalii Date: Fri Oct 29 16:51:49 2021 +0300 flow: fix warning in flow_cache.cc --- diff --git a/src/flow/flow_cache.cc b/src/flow/flow_cache.cc index ab159ddf8..669405e88 100644 --- a/src/flow/flow_cache.cc +++ b/src/flow/flow_cache.cc @@ -135,16 +135,20 @@ void FlowCache::unlink_uni(Flow* flow) if ( flow->key->pkt_type == PktType::IP ) { if ( uni_ip_flows->unlink_uni(flow) ) + { debug_logf(stream_trace, TRACE_FLOW, nullptr, "unlinked unidirectional flow (IP) from list, size: %u\n", uni_ip_flows->get_count()); + } } else { if ( uni_flows->unlink_uni(flow) ) + { debug_logf(stream_trace, TRACE_FLOW, nullptr, "unlinked unidirectional flow (non-IP) from list, size: %u\n", uni_flows->get_count()); + } } }