From a3f3f626e1553c67713405fde4057f0590c6de43 Mon Sep 17 00:00:00 2001 From: fengweihao Date: Tue, 12 Oct 2021 14:32:22 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=E4=BF=AE=E5=A4=8D=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=88=86=E7=B1=BB=E5=91=BD=E4=B8=AD=E8=B7=AF=E5=BE=84=E7=BC=BA?= =?UTF-8?q?=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scan/src/policy_scan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: