在处理pxy_ctrl_policy回调时,仅对manipulate和block动作解析json。

This commit is contained in:
zhengchao
2019-06-11 17:03:05 +08:00
parent a396bec434
commit 77eb5505e0
2 changed files with 5 additions and 0 deletions

View File

@@ -472,6 +472,10 @@ void policy_action_param_new(int idx, const struct Maat_rule_t* rule, const char
{
return;
}
if((unsigned char)rule->action!=PG_ACTION_MANIPULATE&&(unsigned char)rule->action!=PG_ACTION_REJECT)
{
return;
}
int rule_id;
cJSON *json=NULL, *rules=NULL, *item=NULL;
json=cJSON_Parse(srv_def_large);