From: Oleg Torubara -X (otorubar - SOFTSERVE INC at Cisco) Date: Tue, 11 Mar 2025 13:47:00 +0000 (+0000) Subject: Pull request #4653: file_api: add log message for reset ctx X-Git-Tag: 3.7.1.0~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f858d2a536eb828123ad9a10fec97cc3cd97f365;p=thirdparty%2Fsnort3.git 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 --- 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);