summaryrefslogtreecommitdiff
path: root/plugin/business/doh/src
diff options
context:
space:
mode:
authorfengweihao <[email protected]>2024-07-05 15:06:45 +0800
committerfengweihao <[email protected]>2024-07-05 15:06:45 +0800
commitd5b630c5a51242bda719fa3e65b7350924872a9a (patch)
tree4ae92d80496e4f5fddd854a2896bbd0389d273fe /plugin/business/doh/src
parentadf585800bd4918f5106544ee907502426f8c31d (diff)
TSG-21649 修复client_administrative_area字段乱码问题以及Edit Element处理多json问题
Diffstat (limited to 'plugin/business/doh/src')
-rw-r--r--plugin/business/doh/src/logger.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/business/doh/src/logger.cpp b/plugin/business/doh/src/logger.cpp
index db5c0ac..a1ab494 100644
--- a/plugin/business/doh/src/logger.cpp
+++ b/plugin/business/doh/src/logger.cpp
@@ -307,6 +307,7 @@ static int doh_get_ip_client_geolocation(struct tfe_cmsg * cmsg, cJSON *common_o
for(i=TFE_CMSG_SRC_REGION_STR; i <= TFE_CMSG_DST_SUBDIVISION_STR; i+=2)
{
+ memset(opt_val, 0, sizeof(opt_val));
int ret = tfe_cmsg_get_value(cmsg, (enum tfe_cmsg_tlv_type)i, (unsigned char *)opt_val, sizeof(opt_val), &opt_out_size);
if (ret == 0)
{
@@ -325,6 +326,7 @@ static int doh_get_ip_server_geolocation(struct tfe_cmsg * cmsg, cJSON *common_o
for(i=TFE_CMSG_DST_REGION_STR; i <= TFE_CMSG_DST_SUBDIVISION_STR; i+=2)
{
+ memset(opt_val, 0, sizeof(opt_val));
int ret = tfe_cmsg_get_value(cmsg, (enum tfe_cmsg_tlv_type)i, (unsigned char *)opt_val, sizeof(opt_val), &opt_out_size);
if (ret == 0)
{