]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Pull request #4653: file_api: add log message for reset ctx
authorOleg Torubara -X (otorubar - SOFTSERVE INC at Cisco) <otorubar@cisco.com>
Tue, 11 Mar 2025 13:47:00 +0000 (13:47 +0000)
committerSteve Chew (stechew) <stechew@cisco.com>
Tue, 11 Mar 2025 13:47:00 +0000 (13:47 +0000)
Merge in SNORT/snort3 from ~OTORUBAR/snort3:improve_logging to master

Squashed commit of the following:

commit e60995fd30f3b16162f9d4f1a5618f5bca5a8bb7
Author: otorubar <otorubar@cisco.com>
Date:   Tue Mar 4 04:48:58 2025 -0800

    file_api: add log message for reset ctx

src/file_api/file_flows.cc

index aff3f9cf99f939a7da0aa426eb548f64f451b441..51a33aec12c157e6e2c9e92e9b2a4a50f9724591 100644 (file)
@@ -352,8 +352,11 @@ bool FileFlows::file_process(Packet* p, uint64_t file_id, const uint8_t* file_da
     }
 
     if (context->has_to_re_eval() and context->processing_complete and not is_partial)
+    {
+        FILE_DEBUG(file_trace , DEFAULT_TRACE_OPTION_ID, TRACE_CRITICAL_LEVEL, p,
+            "file_process:reset context for re-evaluation \n");
         context->reset();
-
+    }
     context->set_partial_flag(is_partial);
     context->set_weak_file_name((const char*)fname, name_size);
     context->set_weak_url((const char*)url, url_size);