TSG-23332 Fix the issue of coredump generated when Proxy executes lua script.

This commit is contained in:
fengweihao
2024-11-04 16:27:16 +08:00
parent 2b7d35c5c8
commit 13ea52d6d1
2 changed files with 7 additions and 3 deletions

View File

@@ -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";