diff options
| -rw-r--r-- | entry/src/kni_entry.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp index 7757357..7ebc8bf 100644 --- a/entry/src/kni_entry.cpp +++ b/entry/src/kni_entry.cpp @@ -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; |
