diff options
| author | fengweihao <[email protected]> | 2023-11-30 18:24:21 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2023-11-30 18:24:21 +0800 |
| commit | 7ce3d874406ca008262a6cbe5085e7a77691dc0c (patch) | |
| tree | e90e56313e15f641d22b61dd27f465c91b6c6330 /platform/src/verify_policy.cpp | |
| parent | ae2dba8146905a5c7bd905399951eebe3b5e53f6 (diff) | |
bugfix: Adapt the compilation table and grouping table structure changes
Diffstat (limited to 'platform/src/verify_policy.cpp')
| -rw-r--r-- | platform/src/verify_policy.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/src/verify_policy.cpp b/platform/src/verify_policy.cpp index 0231215..e685c8c 100644 --- a/platform/src/verify_policy.cpp +++ b/platform/src/verify_policy.cpp @@ -263,6 +263,11 @@ static int get_attribute_from_json(int curr_id, cJSON* subchild, struct verify_p if(item && item->type==cJSON_String) { policy_query->verify_object[curr_id].table_id = protoco_field_type_str2idx(item->valuestring, buff, &p); + if(policy_query->verify_object[curr_id].table_id == __TSG_OBJ_MAX) + { + mesa_runtime_log(RLOG_LV_FATAL, "Get table id failed form table name:%s", item->valuestring); + return xret; + } } attributeValue = cJSON_GetObjectItem(subchild, "attributeValue"); |
