解决冲突

This commit is contained in:
崔一鸣
2019-06-08 20:32:58 +08:00
2 changed files with 3 additions and 2 deletions

View File

@@ -180,7 +180,7 @@ 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[i].action==KNI_ACTION_BYPASS)
if((unsigned char)result[i].action==KNI_ACTION_BYPASS)
{
return i;
}