summaryrefslogtreecommitdiff
path: root/plugin/business/doh/src/doh.cpp
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-11-04 16:27:16 +0800
committerfengweihao <[email protected]>2024-11-04 16:27:16 +0800
commit13ea52d6d1f32d192f4db98ecb1ec46a2cf9f848 (patch)
treeb81e741fac7036f94bf0eee39d09df2c5d189237 /plugin/business/doh/src/doh.cpp
parent2b7d35c5c837cdf54f117d280a682057665123bf (diff)
TSG-23332 Fix the issue of coredump generated when Proxy executes lua script.v4.10.7-20241104
Diffstat (limited to 'plugin/business/doh/src/doh.cpp')
-rw-r--r--plugin/business/doh/src/doh.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugin/business/doh/src/doh.cpp b/plugin/business/doh/src/doh.cpp
index 50b5cd9..a8d32e8 100644
--- a/plugin/business/doh/src/doh.cpp
+++ b/plugin/business/doh/src/doh.cpp
@@ -811,8 +811,10 @@ void doh_send_metric_log(const struct tfe_stream * stream, struct doh_ctx *ctx,
return;
}
+ char uuid_string[UUID_STRING_SIZE] = {0};
+ uuid_unparse(ctx->result->config_uuid, uuid_string);
fieldstat->tags[thread_id][TAG_VSYS_ID].value_longlong = ctx->result->vsys_id;
- fieldstat->tags[thread_id][TAG_RULE_ID].value_str = ctx->result->config_uuid_string;
+ fieldstat->tags[thread_id][TAG_RULE_ID].value_str = uuid_string;
fieldstat->tags[thread_id][TAG_ACTION].value_str = "manipulate";
fieldstat->tags[thread_id][TAG_SUB_ACTION].value_str = "redirect";