summaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-10-22 15:29:12 +0800
committerfengweihao <[email protected]>2024-10-22 15:29:12 +0800
commitf24a349a4225df1b19dec1e4cb8d9c5f49f7877f (patch)
treeab64f0dc0d8bba50e127c4fac42e2900fffa6cb1 /plugin
parentc1df25d7456317deb5332d6f1c13ede8bb9317c0 (diff)
Change insert_profile to object_profile and fix ip_tag scanning issue
Diffstat (limited to 'plugin')
-rw-r--r--plugin/business/tsg-http/src/tsg_http.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugin/business/tsg-http/src/tsg_http.cpp b/plugin/business/tsg-http/src/tsg_http.cpp
index 085e7e2..82ccbb0 100644
--- a/plugin/business/tsg-http/src/tsg_http.cpp
+++ b/plugin/business/tsg-http/src/tsg_http.cpp
@@ -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)
{