Squashed commit of the following:
commit
4078b6ab63ded28e096cf582027f9829b6d01de1
Author: Silviu Minut <sminut@cisco.com>
Date: Wed Dec 12 15:30:04 2018 -0500
file_api: call FileContext::set_file_name() from FileFlows::set_file_name with fname = nullptr, in order to generate file event.
if ( !context->is_file_name_set() )
{
- if (fname and name_size)
- context->set_file_name((const char*)fname, name_size);
-
+ context->set_file_name((const char*)fname, name_size);
context->log_file_event(flow, file_policy);
}
}
};
const BaseApi* sin_file_flow = &file_inspect_api.base;
-