From f858d2a536eb828123ad9a10fec97cc3cd97f365 Mon Sep 17 00:00:00 2001 From: "Oleg Torubara -X (otorubar - SOFTSERVE INC at Cisco)" Date: Tue, 11 Mar 2025 13:47:00 +0000 Subject: [PATCH] Pull request #4653: file_api: add log message for reset ctx Merge in SNORT/snort3 from ~OTORUBAR/snort3:improve_logging to master Squashed commit of the following: commit e60995fd30f3b16162f9d4f1a5618f5bca5a8bb7 Author: otorubar Date: Tue Mar 4 04:48:58 2025 -0800 file_api: add log message for reset ctx --- src/file_api/file_flows.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/file_api/file_flows.cc b/src/file_api/file_flows.cc index aff3f9cf9..51a33aec1 100644 --- a/src/file_api/file_flows.cc +++ b/src/file_api/file_flows.cc @@ -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); -- 2.47.3