summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2021-10-12 14:32:22 +0800
committerfengweihao <[email protected]>2021-10-12 14:32:22 +0800
commita3f3f626e1553c67713405fde4057f0590c6de43 (patch)
tree416764b80d7f60fa995161b11ac5ec7f357c1aef
parent27dfe2a60569fbf1c6e3cd408a838c7157b5f29f (diff)
bugfix: 修复服务分类命中路径缺失问题v2.2.6-20211012
-rw-r--r--scan/src/policy_scan.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scan/src/policy_scan.cpp b/scan/src/policy_scan.cpp
index 8cbe48c..a624e6f 100644
--- a/scan/src/policy_scan.cpp
+++ b/scan/src/policy_scan.cpp
@@ -1152,7 +1152,7 @@ size_t verify_policy_scan(enum verify_policy_type policy_type, struct verify_pol
n_read=Maat_get_scan_status(g_pangu_rt->maat[policy_type], &(ctx->scan_mid), MAAT_GET_SCAN_HIT_PATH, ctx->hit_path, sizeof(ctx->hit_path));
if(scan_ret == -2 || scan_ret >0)
{
- query_obj->nth_scan[0] = ctx->hit_path[ctx->n_read].Nth_scan;
+ query_obj->nth_scan[query_obj->nth_scan_num] = ctx->hit_path[ctx->n_read].Nth_scan;
ctx->n_read=n_read;
}
decide: