Change insert_profile to object_profile and fix ip_tag scanning issue
This commit is contained in:
@@ -614,7 +614,7 @@ void policy_action_param_new(const char *table_name, const char* key, const char
|
||||
{
|
||||
param->hit_rule.vsys_id=item->valueint;
|
||||
}
|
||||
item=cJSON_GetObjectItem(action_parameter,"insert_profile");
|
||||
item=cJSON_GetObjectItem(action_parameter,"inject_profile");
|
||||
if(item && item->type==cJSON_String)
|
||||
{
|
||||
param->profile_uuid_str =tfe_strdup(item->valuestring);
|
||||
@@ -2398,6 +2398,12 @@ static int format_insert_rule(char *profile_uuid, struct insert_rule *rule)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
if(profile_uuid == NULL)
|
||||
{
|
||||
ret=-1;
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct manipulate_profile* insert_profile=get_profile_by_id("PROXY_INJECT_SCRIPT", profile_uuid);
|
||||
if(insert_profile==NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user