修复判断配置优先级函数中的笔误
This commit is contained in:
@@ -180,15 +180,15 @@ static int index_of_enforce_policy(struct Maat_rule_t* result, size_t size)
|
||||
int biggest_policy_id=0, ret_intercept_idx=0;
|
||||
for(i=0; i<size; i++)
|
||||
{
|
||||
if(result->action==KNI_ACTION_BYPASS)
|
||||
if(result[i].action==KNI_ACTION_BYPASS)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(result->config_id>biggest_policy_id)
|
||||
if(result[i].config_id>biggest_policy_id)
|
||||
{
|
||||
biggest_policy_id=result->config_id;
|
||||
biggest_policy_id=result[i].config_id;
|
||||
ret_intercept_idx=i;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user