summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/src/intercept_policy.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/src/intercept_policy.cpp b/common/src/intercept_policy.cpp
index 0921b84..b69be67 100644
--- a/common/src/intercept_policy.cpp
+++ b/common/src/intercept_policy.cpp
@@ -102,6 +102,15 @@ static void intercept_param_new_cb(const char *table_name, const char *key, cons
goto error_out;
}
+ // vsys_id
+ item = cJSON_GetObjectItem(json_subroot, "vsys_id");
+ if (!item || !cJSON_IsNumber(item))
+ {
+ TFE_LOG_ERROR(enforcer->logger, "Invalid intercept rule:%s (invalid vsys_id format) %s.", key, table_line);
+ goto error_out;
+ }
+ param->vsys_id = item->valueint;
+
// keyring_for_trusted
item = cJSON_GetObjectItem(json_subroot, "keyring_for_trusted");
if (item)