summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
author刘学利 <[email protected]>2020-10-12 16:36:58 +0800
committer刘学利 <[email protected]>2020-10-12 16:36:58 +0800
commitb4385fd4e5bbfa00bfc616d4a4ba9ba892f34127 (patch)
treecd97753d620ec87860399d2bad7cf05154a89413 /src/dns.cpp
parentfa67f2b70331a20ace72c3b6b8a0c2fbf13e1c5d (diff)
parent480e220ec2ef947d38f655387402fa88509ce16e (diff)
Merge branch 'develop-export-version' into 'master'
修复BUG,声明全局变量长度与使用不一致导致ASAN报错 See merge request MESA_Platform/dns!9
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index f38b53c..a33b80b 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -81,7 +81,7 @@ static dns_str_contrast_id_t DNS_FLAG_ID[] =
{"DNS_RES_ADD", DNS_RES_ADD}
};
-static dns_str_contrast_id_t DNS_STATIS_INFO[] =
+static dns_str_contrast_id_t DNS_STATIS_INFO[DNS_MAX_FIELD_ID_NUM] =
{
{"V4_T_PPS", V4_T_PPS},
{"V4_T_BPS", V4_T_BPS},