diff options
| author | 刘畅 <[email protected]> | 2024-10-29 07:42:43 +0000 |
|---|---|---|
| committer | 刘畅 <[email protected]> | 2024-10-29 07:42:43 +0000 |
| commit | 2e73009c3cfd52ef1962dd338c02b323dabe2943 (patch) | |
| tree | 09b2869ae31449ba5611472e89c8c4d31be38996 | |
| parent | ef65ec1447d900f105c93b86ac55339d83d987f6 (diff) | |
| parent | 5c6e65e1ec6cbb93ab722da9379a0537de938e28 (diff) | |
Merge branch 'bugfix-rule-enabled-check' into 'rel'v3.2.2
fix para wrong when check rule is enabled
See merge request tango/shaping-engine!105
| -rw-r--r-- | shaping/src/shaper_maat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shaping/src/shaper_maat.cpp b/shaping/src/shaper_maat.cpp index e74c280..9655838 100644 --- a/shaping/src/shaper_maat.cpp +++ b/shaping/src/shaper_maat.cpp @@ -452,7 +452,7 @@ int shaper_rule_is_enabled(struct shaping_thread_ctx *ctx, uuid_t rule_uuid) { char uuid_str[UUID_STR_LEN] = {0}; uuid_unparse(rule_uuid, uuid_str); - struct shaping_rule *s_rule = (struct shaping_rule*)maat_plugin_table_get_ex_data(g_maat_instance, SHAPING_RULE_TABLE_NAME, uuid_str, sizeof(uuid_str)); + struct shaping_rule *s_rule = (struct shaping_rule*)maat_plugin_table_get_ex_data(g_maat_instance, SHAPING_RULE_TABLE_NAME, uuid_str, strlen(uuid_str)); if (s_rule) { return 1; |
