修复:监测策略用户自定义域为空白json,命中后导致段错误。
This commit is contained in:
@@ -610,6 +610,11 @@ void policy_action_param_free(struct policy_action_param* param)
|
||||
void policy_action_param_dup(int idx, MAAT_RULE_EX_DATA *to, MAAT_RULE_EX_DATA *from, long argl, void *argp)
|
||||
{
|
||||
struct policy_action_param* from_param=*((struct policy_action_param**)from);
|
||||
if(from_param==NULL)
|
||||
{
|
||||
*to=NULL;
|
||||
return;
|
||||
}
|
||||
pthread_mutex_lock(&(from_param->lock));
|
||||
from_param->ref_cnt++;
|
||||
pthread_mutex_unlock(&(from_param->lock));
|
||||
|
||||
Reference in New Issue
Block a user