diff options
| author | fengweihao <[email protected]> | 2023-04-06 14:51:09 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2023-04-06 14:51:09 +0800 |
| commit | 1aa056aaf883747f86ad4b177244713cbf2d78bc (patch) | |
| tree | 26733c4fffa032d81d4c46436c1a788a0861f6ce | |
| parent | ca2f597634ed1545be41da0cc04e6877563f542f (diff) | |
适配maat_state_set_scan_district接口变更v3.0.2-20230406
| -rw-r--r-- | platform/src/verify_matcher.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/src/verify_matcher.cpp b/platform/src/verify_matcher.cpp index d1ec97b..c38eed6 100644 --- a/platform/src/verify_matcher.cpp +++ b/platform/src/verify_matcher.cpp @@ -190,6 +190,7 @@ void pangu_http_ctx_free(void * pme) if(ctx->enforce_rules) FREE(&ctx->enforce_rules); + if(ctx->hit_rules) FREE(&ctx->hit_rules); @@ -1568,7 +1569,7 @@ static int policy_verify_scan_http_hdr(struct request_query_obj *request, struct int table_id = request->table_id; const char *value = request->keyword; const char * str_field_name = request->district; - scan_ret = maat_state_set_scan_district(ctx->scan_mid, str_field_name, strlen(str_field_name)); + scan_ret = maat_state_set_scan_district(ctx->scan_mid, g_policy_rt->scan_table_id[compile_type][table_id], str_field_name, strlen(str_field_name)); assert(scan_ret == 0); scan_ret = maat_scan_string(g_policy_rt->feather[vsys_id][compile_type], g_policy_rt->scan_table_id[compile_type][table_id], value, strlen(value), ctx->result + hit_cnt, MAX_SCAN_RESULT - hit_cnt, |
