diff options
| author | zhengchao <[email protected]> | 2020-12-05 16:54:04 +0600 |
|---|---|---|
| committer | zhengchao <[email protected]> | 2020-12-05 16:54:04 +0600 |
| commit | a925ed039da2deeac919fb6bf758893d4d344a3a (patch) | |
| tree | cf03960d9985753dd3349df1f915075c11467955 /src/entry/Maat_api.cpp | |
| parent | f8ca593ea1cadf4aab42d0491f327e5a9ed9a73a (diff) | |
Diffstat (limited to 'src/entry/Maat_api.cpp')
| -rw-r--r-- | src/entry/Maat_api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/entry/Maat_api.cpp b/src/entry/Maat_api.cpp index 29cfa97..1880041 100644 --- a/src/entry/Maat_api.cpp +++ b/src/entry/Maat_api.cpp @@ -226,7 +226,7 @@ int region_compile(_Maat_feather_t*feather, struct Maat_hierarchy_compile_mid* c int scan_ret=0; int i=0; - struct Maat_compile_rule* compile_rule_array[MAX_SCANNER_HIT_NUM]; + struct Maat_compile_rule* compile_rule_array[size]; struct Maat_compile_rule* compile_rule=NULL; int virtual_table_id=0; @@ -247,7 +247,7 @@ int region_compile(_Maat_feather_t*feather, struct Maat_hierarchy_compile_mid* c Maat_hierarchy_compile_mid_udpate(compile_mid, region->region_id, virtual_table_id, region_hit_wraper->Nth_scan, i); } - scan_ret=Maat_hierarchy_region_compile(compile_mid, is_last_region, (void**)compile_rule_array, MAX_SCANNER_HIT_NUM); + scan_ret=Maat_hierarchy_region_compile(compile_mid, is_last_region, (void**)compile_rule_array, size); //Maat_hierarchy is rwlock protected, it always returns non-NULL compile_rule. if(scan_ret>1) { |
