修改结构体_identify_info变为identify_info

This commit is contained in:
fumingwei
2021-03-05 18:51:24 +08:00
parent 13e663f7f9
commit 916999fe4d

View File

@@ -1454,8 +1454,8 @@ char first_data_process(struct streaminfo *stream, struct pme_info *pmeinfo, str
void *logger = g_kni_handle->local_logger;
int maat_hit = 0;
int ret = 0;
struct _identify_info identify_info;
ret = tsg_pull_policy_result(stream, PULL_KNI_RESULT, &(pmeinfo->maat_result), 1, &identify_info);
struct identify_info _identify_info;
ret = tsg_pull_policy_result(stream, PULL_KNI_RESULT, &(pmeinfo->maat_result), 1, &_identify_info);
//ret == 0, bypass and dropme
if(ret == 0){
pmeinfo->action = KNI_ACTION_NONE;
@@ -1465,9 +1465,9 @@ char first_data_process(struct streaminfo *stream, struct pme_info *pmeinfo, str
}
else{
pmeinfo->maat_result_num = 1;
pmeinfo->protocol = identify_info.proto;
pmeinfo->domain_len = MIN(identify_info.domain_len, (int)sizeof(pmeinfo->domain) - 1);
strncpy(pmeinfo->domain.sni, identify_info.domain, pmeinfo->domain_len);
pmeinfo->protocol = _identify_info.proto;
pmeinfo->domain_len = MIN(_identify_info.domain_len, (int)sizeof(pmeinfo->domain) - 1);
strncpy(pmeinfo->domain.sni, _identify_info.domain, pmeinfo->domain_len);
pmeinfo->action = (enum kni_action)(pmeinfo->maat_result.action);
pmeinfo->policy_id = pmeinfo->maat_result.config_id;
pmeinfo->do_log = pmeinfo->maat_result.do_log;