Squashed commit of the following:
commit
51d44ef769bddb1616445b20425a069a090cdf01
Author: krishnakanth <vkambala@cisco.com>
Date: Wed Nov 4 02:19:18 2020 -0500
file_api: handling resume block when multiple file rules are configured with store option enabled
context->set_file_id(file_id);
}
- if ( offset != 0 and context->is_cacheable() and
- (FileService::get_file_cache()->cached_verdict_lookup(p, context, file_policy) !=
- FILE_VERDICT_UNKNOWN) )
+ if ( ((offset != 0) or (position == SNORT_FILE_FULL)) and context->is_cacheable() and
+ (FileService::get_file_cache()->cached_verdict_lookup(p, context, file_policy) !=
+ FILE_VERDICT_UNKNOWN) )
{
context->processing_complete = true;
remove_processed_file_context(multi_file_processing_id);