]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #3140 in SNORT/snort3 from ~VHORBATO/snort3:fix_wempty-body_master...
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Fri, 29 Oct 2021 17:42:37 +0000 (17:42 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Fri, 29 Oct 2021 17:42:37 +0000 (17:42 +0000)
Squashed commit of the following:

commit 94e9caa22eb12303af0ee3de95370a43eeecea4b
Author: Vitalii <vhorbato@cisco.com>
Date:   Fri Oct 29 16:51:49 2021 +0300

    flow: fix warning in flow_cache.cc

src/flow/flow_cache.cc

index ab159ddf8b91bf119bf5b961fa7cb10526a964fe..669405e888cf2a057206d75e1e35365d180bff83 100644 (file)
@@ -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());
+        }
     }
 }